aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/shutdown.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/shutdown.exp')
-rwxr-xr-xtest/utils/shutdown.exp15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/utils/shutdown.exp b/test/utils/shutdown.exp
index ca321b3c9..15a9a62c8 100755
--- a/test/utils/shutdown.exp
+++ b/test/utils/shutdown.exp
@@ -13,22 +13,23 @@ expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --shutdown=shutdowntesting;pwd\r" 19send -- "firejail --shutdown=shutdowntesting; echo done\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 4\n";exit} 21 timeout {puts "TESTING ERROR 4\n";exit}
22 "home" 22 "done"
23} 23}
24sleep 1 24sleep 5
25 25
26send -- "firejail --list;pwd\r" 26spawn $env(SHELL)
27send -- "firejail --list;echo done\r"
27expect { 28expect {
28 timeout {puts "TESTING ERROR 5\n";exit} 29 timeout {puts "TESTING ERROR 5\n";exit}
29 "shutdowntesting" {puts "TESTING ERROR 6\n";exit} 30 "shutdowntesting" {puts "TESTING ERROR 6\n";exit}
30 "home" 31 "done"
31} 32}
32sleep 1 33sleep 1
33 34
34puts "\nalldone\n" 35puts "\nall done\n"