Merge "Inverse the fail/pass logic"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 16 Oct 2019 07:52:13 +0000 (07:52 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Wed, 16 Oct 2019 07:52:13 +0000 (07:52 +0000)
common/scripts/test_can_bitrate.sh

index 2461fa0..3a8f225 100755 (executable)
@@ -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