From fdb4610b17c6837507bb2f1c081defe1d5debf47 Mon Sep 17 00:00:00 2001 From: knj Date: Mon, 4 Jul 2022 18:18:17 +0200 Subject: [PATCH 1/2] add failure detection to smoke test --- .gitlab-ci.yml | 3 +++ ci/smoke_test.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7df1635da6..431467d28e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,9 +85,12 @@ codec-smoke-test: stage: test script: - bash ci/smoke_test.sh + ### analyze for failures + - if cat smoke_test_output.txt | grep -c "failed"; then echo "Smoke test failed"; exit 1; fi artifacts: paths: - out/logs + - out_plc/logs # compare bit exactness between target and source branch diff --git a/ci/smoke_test.sh b/ci/smoke_test.sh index 9c423d4eec..c1502bac53 100755 --- a/ci/smoke_test.sh +++ b/ci/smoke_test.sh @@ -10,4 +10,4 @@ make all -j # get all modes except SBA rate switching (which is broken currently) list=$(./scripts/runIvasCodec.py -l | grep -v "SBA.*rs") -./scripts/runIvasCodec.py -p ./scripts/config/ci_linux.json -m $list -U 1 +./scripts/runIvasCodec.py -p ./scripts/config/ci_linux.json -m $list -U 1 | tee smoke_test_output.txt -- GitLab From 03056bf0d23a756a3a81c1da57c347360332ec06 Mon Sep 17 00:00:00 2001 From: kiene Date: Mon, 4 Jul 2022 16:28:14 +0000 Subject: [PATCH 2/2] Remove typo that adds non-existent artifact --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 431467d28e..a87ed452b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,7 +90,6 @@ codec-smoke-test: artifacts: paths: - out/logs - - out_plc/logs # compare bit exactness between target and source branch -- GitLab