diff --git a/demo/kill-on-timeout.should b/demo/kill-on-timeout.should index 7688c3234640878a89d2ee3182c1d26e0dc01212..7ebc4f968c251191efb88858c92653818a0f39db 100644 --- a/demo/kill-on-timeout.should +++ b/demo/kill-on-timeout.should @@ -1,7 +1,10 @@ # when task takes too many time it should be killed by should.py +!EXIT_CODE: 1 ./should --timeout 1 demo/tests/timeout.should + # Check that the script is not running anymore +!EXIT_CODE: 0 ps awux | grep 'seq 1 10.*sleep' | grep -v grep || echo "not found" $ The task must time out