From: Khouloud Touil Date: Tue, 15 Oct 2019 14:54:15 +0000 (+0200) Subject: Inverse the fail/pass logic X-Git-Tag: 8.99.1~7^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=94a4e645c7a90b7b493f620dbe25d699ff922b2f;p=src%2Fqa-testdefinitions.git Inverse the fail/pass logic This test should be failing, so it should be set to pass when it fails, and should be set to fail when it passes. AGL-bug: SPEC-2878 Change-Id: I43921717eea77d654921eca4691c936bb2901e54 Signed-off-by: Khouloud Touil --- diff --git a/common/scripts/test_can_bitrate.sh b/common/scripts/test_can_bitrate.sh index 2461fa0..3a8f225 100755 --- a/common/scripts/test_can_bitrate.sh +++ b/common/scripts/test_can_bitrate.sh @@ -69,9 +69,9 @@ for b in `seq 778 790`;do candump can1 > $file_can & sleep 3 if [ -s $file_can ];then - lava-test-case can1_xfer_config_range_start --result pass --measurement $b --units bit/s - else lava-test-case can1_xfer_config_range_start --result fail --measurement $b --units bit/s + else + lava-test-case can1_xfer_config_range_start --result pass --measurement $b --units bit/s sleep 2 echo "This bitrate $b belongs to the domain but doesn't provide frames transmission" fi