From 71bc5ce9e1cb10a12b4ff99534e1643cf1609e4b Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Thu, 25 Aug 2022 15:44:01 +0800
Subject: [PATCH] .oniro-ci: exclude symbolic link for zephyr image test

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .oniro-ci/test-generic.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml
index d1ec6b25..ed4ff15b 100644
--- a/.oniro-ci/test-generic.yaml
+++ b/.oniro-ci/test-generic.yaml
@@ -73,7 +73,7 @@
       rm -rf lava_jobs && mkdir lava_jobs
       # Generate job definitions for zephyr build
       if echo "${CI_BUILD_JOB_NAME}" | grep -i "zephyr" | grep -vi "twister"; then
-        for image in $(find artifacts/images/${MACHINE} -name "*.elf" -exec basename {} \;); do
+        for image in $(find artifacts/images/${MACHINE} -type f -name "*.elf" -exec basename {} \;); do
           image_basename=$(basename "${image}" ".elf")
           echo "--- Generating lava job definition ${image_basename}.yaml ---"
           sed "s/@image_basename@/$image_basename/" job_def.yaml | tee lava_jobs/"${image_basename}".yaml
-- 
GitLab