test: debug cond test in azure

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-04-24 14:14:35 +02:00
parent 7a8d4e2c6b
commit 1c150928cb
+10 -3
View File
@@ -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'