diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 505: lava-test-case should not return non-zero exit code for --shell false

Message ID 20121218161516.23742.45632.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Alexander Sack Dec. 18, 2012, 4:15 p.m. UTC
------------------------------------------------------------
revno: 505
committer: Alexander Sack <asac@linaro.org>
branch nick: lava-dispatcher
timestamp: Tue 2012-12-18 14:40:59 +0100
message:
  lava-test-case should not return non-zero exit code for --shell false
modified:
  lava_test_shell/lava-test-case


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_test_shell/lava-test-case'
--- lava_test_shell/lava-test-case	2012-12-04 22:20:34 +0000
+++ lava_test_shell/lava-test-case	2012-12-18 13:40:59 +0000
@@ -74,4 +74,8 @@ 
 if [ -n "${MEASUREMENT+x}" ]; then
     echo $MEASUREMENT > $result_dir/measurement
 fi
-exit $rc
+
+# lava-test-case testname --shell false should report a fail as test result
+# but not fail itself; hence don't honor 'rc' if we reach this, but exit 0
+exit 0
+