From 1c150928cb699d5d2762aaa5c0663be9955dddb5 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 24 Apr 2022 14:14:35 +0200 Subject: [PATCH] test: debug cond test in azure Signed-off-by: Joachim Wiberg --- test/cond-start-task.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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'