aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/join.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/join.exp')
-rwxr-xr-xtest/root/join.exp18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/root/join.exp b/test/root/join.exp
index 19b4c8f02..291ee9115 100755
--- a/test/root/join.exp
+++ b/test/root/join.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --name=jointesting --cpu=0 --nice=2\r" 11send -- "firejail --name=jointesting --cpu=0 --nice=2\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15} 15}
16sleep 2 16sleep 2
17 17
@@ -21,14 +21,18 @@ expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27}
24sleep 1 28sleep 1
25send -- "ps aux\r" 29send -- "ps aux\r"
26expect { 30expect {
27 timeout {puts "TESTING ERROR 2\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
28 "/bin/bash" 32 "/bin/bash"
29} 33}
30expect { 34expect {
31 timeout {puts "TESTING ERROR 3\n";exit} 35 timeout {puts "TESTING ERROR 4\n";exit}
32 "/bin/bash" 36 "/bin/bash"
33} 37}
34 38
@@ -36,15 +40,15 @@ send -- "exit\r"
36sleep 1 40sleep 1
37send -- "firejail --join-network=jointesting\r" 41send -- "firejail --join-network=jointesting\r"
38expect { 42expect {
39 timeout {puts "TESTING ERROR 4\n";exit} 43 timeout {puts "TESTING ERROR 5\n";exit}
40 "Child process initialized" 44 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
41} 45}
42send -- "exit\r" 46send -- "exit\r"
43sleep 1 47sleep 1
44send -- "firejail --join-filesystem=jointesting\r" 48send -- "firejail --join-filesystem=jointesting\r"
45expect { 49expect {
46 timeout {puts "TESTING ERROR 5\n";exit} 50 timeout {puts "TESTING ERROR 6\n";exit}
47 "Child process initialized" 51 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
48} 52}
49 53
50after 100 54after 100