Commit 0d121a19 authored by Mikael Salson's avatar Mikael Salson

demo: Test for #25

parent da26b098
# when task takes too many time it should be killed by should.py
./should --timeout 1 demo/tests/timeout.should
# Check that the script is not running anymore
ps awux | grep 'seq 1 10.*sleep' | grep -v grep || echo "not found"
$ The task must time out
1: timeout after
$ The elapsed time must be close to the timeout
r1:^1.[0-9]+s
$ The task must not run anymore
1:not found
for i in `seq 1 10`; do sleep .5s; done
echo $i
$ The variable should reach its final value
1:10
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