Commit 0abb92c0 authored by Mathieu Giraud's avatar Mathieu Giraud

demo/kill-on-timeout.should: !EXIT_CODE is now mandatory here

parent 12916cb2
# when task takes too many time it should be killed by should.py # when task takes too many time it should be killed by should.py
!EXIT_CODE: 1
./should --timeout 1 demo/tests/timeout.should ./should --timeout 1 demo/tests/timeout.should
# Check that the script is not running anymore # Check that the script is not running anymore
!EXIT_CODE: 0
ps awux | grep 'seq 1 10.*sleep' | grep -v grep || echo "not found" ps awux | grep 'seq 1 10.*sleep' | grep -v grep || echo "not found"
$ The task must time out $ The task must time out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment