@@ -58,7 +58,7 @@ actions:
password: "CIPsecurity@123"
# TEST_BLOCK
-# Sleep 200s is added to make the job incomplete with a timeout if software update application failed
+# Fail the job if software update application failed
- test:
timeout:
minutes: 15
@@ -70,7 +70,7 @@ actions:
description: "Test software update"
run:
steps:
- - if swupdate -d "-u #project_url#/#branch#/#architecture#/cip-core-image-security-cip-core-#distribution#-#architecture#.swu"; then echo software update is successful!!; else sleep 200s; fi
+ - if swupdate -d "-u #project_url#/#branch#/#architecture#/cip-core-image-security-cip-core-#distribution#-#architecture#.swu"; then echo software update is successful!!; else lava-test-raise "Fail job"; fi
from: inline
name: sample-test-1
path: inline/sample-test.yaml
@@ -102,7 +102,7 @@ actions:
parameters:
kernel-start-message: "kernel: C:BOOT1:linux.efi"
-# sleep 180s is added to make the job incomplete if ustate is not 2 in the updated partition
+# Fail the job if ustate is not #updatestate# after reboot
- test:
timeout:
minutes: 5
@@ -114,7 +114,7 @@ actions:
description: "check boot loader environment variables"
run:
steps:
- - if [ $(bg_printenv | grep ustate | awk 'FNR == 2{print $2}') = 2 ]; then bg_setenv -c; else sleep 180s; fi
+ - if [ $(bg_printenv | grep ustate | awk 'FNR == 2{print $2}') = 2 ]; then bg_setenv -c; else lava-test-raise "Fail job"; fi
from: inline
name: sample-test-2
path: inline/sample-test.yaml