diff --git a/test/cond-start-task.sh b/test/cond-start-task.sh index 46d0e89d..6dae54c8 100755 --- a/test/cond-start-task.sh +++ b/test/cond-start-task.sh @@ -28,20 +28,27 @@ test_one() say "Add stanza '$stanza' to $TEST_CONF ..." texec sh -c "echo '$stanza' > $TEST_CONF" + texec sh -c "ls -l /run/ /run/finit/" say 'Reload Finit' # texec sh -c "initctl debug" texec sh -c "initctl reload" # texec sh -c "initctl status" # texec sh -c "ps" + sleep 1 + texec sh -c "ls -l /run/ /run/finit/" say 'Asserting condition' texec sh -c "initctl cond set $cond" -# texec sh -c "initctl status" -# texec sh -c "ps" -# texec sh -c "initctl status task.sh" + sleep 1 + texec sh -c "ls -l /run/ /run/finit/" + texec sh -c "initctl status" + texec sh -c "ps" + texec sh -c "initctl status task.sh" sleep 1 + texec sh -c "echo Hej; cat /run/task.state" + assert_file_contains /run/task.state 1 say 'Reload Finit'