From b8ee1bc416c60327b0ea88553894aebd1d46ba92 Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Wed, 25 May 2022 11:31:42 +0800
Subject: [PATCH] .oniro-ci: fix zephyr test job submission

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 803d8db2..0d439e19 100644
--- a/.oniro-ci/test-generic.yaml
+++ b/.oniro-ci/test-generic.yaml
@@ -51,7 +51,7 @@
       set -x
       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
+      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
           image_basename=$(basename "${image}" ".elf")
           echo "--- Generating lava job definition ${image_basename}.yaml ---"
-- 
GitLab