aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2022-02-09 18:04:36 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2022-02-09 18:30:45 +0100
commit7578e86ef8ddb78da44d426b94def77366627e0e (patch)
treee752d23f1b61a50fb7b7372d6799fe9ef4d111e4 /test/environment
parentMerge pull request #4915 from kmk3/keepassx-restore-nou2f (diff)
downloadfirejail-7578e86ef8ddb78da44d426b94def77366627e0e.tar.gz
firejail-7578e86ef8ddb78da44d426b94def77366627e0e.tar.zst
firejail-7578e86ef8ddb78da44d426b94def77366627e0e.zip
testing: fix expect matching of numbers
The sandbox timestamp should not be available for matching when output is already expected from the next command (this is only a problem if numeric output if expected from the first command in the sandbox). A possible alternative would be to flush the expect output buffer with 'expect "*"' after the sandbox is up.
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/allow-debuggers.exp2
-rwxr-xr-xtest/environment/csh.exp2
-rwxr-xr-xtest/environment/dash.exp2
-rwxr-xr-xtest/environment/deterministic-exit-code.exp4
-rwxr-xr-xtest/environment/dns.exp8
-rwxr-xr-xtest/environment/doubledash.exp4
-rwxr-xr-xtest/environment/env.exp4
-rwxr-xr-xtest/environment/extract_command.exp2
-rwxr-xr-xtest/environment/firejail-in-firejail.exp2
-rwxr-xr-xtest/environment/hostfile.exp2
-rwxr-xr-xtest/environment/ibus.exp2
-rwxr-xr-xtest/environment/keep-fd.exp10
-rwxr-xr-xtest/environment/machineid.exp2
-rwxr-xr-xtest/environment/nice.exp6
-rwxr-xr-xtest/environment/rlimit-join.exp8
-rwxr-xr-xtest/environment/rlimit-profile.exp2
-rwxr-xr-xtest/environment/rlimit.exp2
-rwxr-xr-xtest/environment/shell-none.exp4
-rwxr-xr-xtest/environment/sound.exp10
-rwxr-xr-xtest/environment/timeout.exp2
-rwxr-xr-xtest/environment/umask.exp2
-rwxr-xr-xtest/environment/zsh.exp2
22 files changed, 44 insertions, 40 deletions
diff --git a/test/environment/allow-debuggers.exp b/test/environment/allow-debuggers.exp
index 412e24e9b..f972b5788 100755
--- a/test/environment/allow-debuggers.exp
+++ b/test/environment/allow-debuggers.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --allow-debuggers\r" 11send -- "firejail --allow-debuggers\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" { puts "\n"} 14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" { puts "\n"}
15 "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit } 15 "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit }
16} 16}
17after 100 17after 100
diff --git a/test/environment/csh.exp b/test/environment/csh.exp
index eedb1bab7..31bfbfa40 100755
--- a/test/environment/csh.exp
+++ b/test/environment/csh.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --private --shell=/bin/csh\r" 11send -- "firejail --private --shell=/bin/csh\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 1 16sleep 1
17 17
diff --git a/test/environment/dash.exp b/test/environment/dash.exp
index c2ece31f0..4dd5cac9f 100755
--- a/test/environment/dash.exp
+++ b/test/environment/dash.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --private --tracelog --shell=/bin/dash\r" 11send -- "firejail --private --tracelog --shell=/bin/dash\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 1 16sleep 1
17 17
diff --git a/test/environment/deterministic-exit-code.exp b/test/environment/deterministic-exit-code.exp
index d7585c401..9f5be2c3d 100755
--- a/test/environment/deterministic-exit-code.exp
+++ b/test/environment/deterministic-exit-code.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail\r" 10send -- "firejail\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
@@ -32,7 +32,7 @@ after 100
32send -- "firejail --deterministic-exit-code\r" 32send -- "firejail --deterministic-exit-code\r"
33expect { 33expect {
34 timeout {puts "TESTING ERROR 3\n";exit} 34 timeout {puts "TESTING ERROR 3\n";exit}
35 "Child process initialized" 35 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
36} 36}
37sleep 1 37sleep 1
38 38
diff --git a/test/environment/dns.exp b/test/environment/dns.exp
index 1fe6449b7..b5a8c119b 100755
--- a/test/environment/dns.exp
+++ b/test/environment/dns.exp
@@ -30,7 +30,7 @@ expect {
30} 30}
31expect { 31expect {
32 timeout {puts "TESTING ERROR 1.5\n";exit} 32 timeout {puts "TESTING ERROR 1.5\n";exit}
33 "Child process initialized" 33 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
34} 34}
35expect { 35expect {
36 timeout {puts "TESTING ERROR 1.6\n";exit} 36 timeout {puts "TESTING ERROR 1.6\n";exit}
@@ -47,7 +47,7 @@ expect {
47 "DNS server 8.8.8.8" {puts "TESTING ERROR 2.3\n";exit} 47 "DNS server 8.8.8.8" {puts "TESTING ERROR 2.3\n";exit}
48 "DNS server 4.2.2.1" {puts "TESTING ERROR 2.4\n";exit} 48 "DNS server 4.2.2.1" {puts "TESTING ERROR 2.4\n";exit}
49 "DNS server ::2" {puts "TESTING ERROR 2.5\n";exit} 49 "DNS server ::2" {puts "TESTING ERROR 2.5\n";exit}
50 "Child process initialized" {puts "TESTING ERROR 2.6\n";exit} 50 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "TESTING ERROR 2.6\n";exit}
51 "Parent is shutting down, bye..." {puts "TESTING ERROR 2.7\n";exit} 51 "Parent is shutting down, bye..." {puts "TESTING ERROR 2.7\n";exit}
52 "root" 52 "root"
53} 53}
@@ -56,7 +56,7 @@ after 100
56send -- "firejail --dns=8.8.4.4 --dns=8.8.8.8 --dns=4.2.2.1 --dns=::2\r" 56send -- "firejail --dns=8.8.4.4 --dns=8.8.8.8 --dns=4.2.2.1 --dns=::2\r"
57expect { 57expect {
58 timeout {puts "TESTING ERROR 3\n";exit} 58 timeout {puts "TESTING ERROR 3\n";exit}
59 "Child process initialized" 59 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
60} 60}
61sleep 1 61sleep 1
62 62
@@ -85,7 +85,7 @@ sleep 1
85send -- "firejail --profile=dns.profile\r" 85send -- "firejail --profile=dns.profile\r"
86expect { 86expect {
87 timeout {puts "TESTING ERROR 5.1\n";exit} 87 timeout {puts "TESTING ERROR 5.1\n";exit}
88 "Child process initialized" 88 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
89} 89}
90sleep 1 90sleep 1
91 91
diff --git a/test/environment/doubledash.exp b/test/environment/doubledash.exp
index 1a9ecebe1..dd2725426 100755
--- a/test/environment/doubledash.exp
+++ b/test/environment/doubledash.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail -- ls -- -testdir\r" 10send -- "firejail -- ls -- -testdir\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 1\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15expect { 15expect {
16 timeout {puts "TESTING ERROR 2\n";exit} 16 timeout {puts "TESTING ERROR 2\n";exit}
@@ -26,7 +26,7 @@ sleep 1
26send -- "firejail --name=testing -- -testdir/bash\r" 26send -- "firejail --name=testing -- -testdir/bash\r"
27expect { 27expect {
28 timeout {puts "TESTING ERROR 4\n";exit} 28 timeout {puts "TESTING ERROR 4\n";exit}
29 "Child process initialized" 29 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
30} 30}
31sleep 3 31sleep 3
32 32
diff --git a/test/environment/env.exp b/test/environment/env.exp
index b5ebe883c..9394f2066 100755
--- a/test/environment/env.exp
+++ b/test/environment/env.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --env=ENV1=env1 --env=ENV2=env2 --env=ENV3=env3\r" 11send -- "firejail --env=ENV1=env1 --env=ENV2=env2 --env=ENV3=env3\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 1 16sleep 1
17 17
@@ -37,7 +37,7 @@ after 100
37send -- "firejail --profile=env.profile\r" 37send -- "firejail --profile=env.profile\r"
38expect { 38expect {
39 timeout {puts "TESTING ERROR 4\n";exit} 39 timeout {puts "TESTING ERROR 4\n";exit}
40 "Child process initialized" 40 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
41} 41}
42sleep 1 42sleep 1
43send -- "env | grep LD_LIBRARY_PATH\r" 43send -- "env | grep LD_LIBRARY_PATH\r"
diff --git a/test/environment/extract_command.exp b/test/environment/extract_command.exp
index e719e6658..45ff1f291 100755
--- a/test/environment/extract_command.exp
+++ b/test/environment/extract_command.exp
@@ -14,7 +14,7 @@ expect {
14} 14}
15expect { 15expect {
16 timeout {puts "TESTING ERROR 2\n";exit} 16 timeout {puts "TESTING ERROR 2\n";exit}
17 "Child process initialized" 17 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
18} 18}
19expect { 19expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 20 timeout {puts "TESTING ERROR 2\n";exit}
diff --git a/test/environment/firejail-in-firejail.exp b/test/environment/firejail-in-firejail.exp
index 10d5c9074..4a60d5611 100755
--- a/test/environment/firejail-in-firejail.exp
+++ b/test/environment/firejail-in-firejail.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail\r" 10send -- "firejail\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 1\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/environment/hostfile.exp b/test/environment/hostfile.exp
index 709eb5d36..ccc8d049e 100755
--- a/test/environment/hostfile.exp
+++ b/test/environment/hostfile.exp
@@ -15,7 +15,7 @@ expect {
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 2\n";exit} 17 timeout {puts "TESTING ERROR 2\n";exit}
18 "Child process initialized" 18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19} 19}
20after 100 20after 100
21 21
diff --git a/test/environment/ibus.exp b/test/environment/ibus.exp
index e6095dc44..e9dd290a1 100755
--- a/test/environment/ibus.exp
+++ b/test/environment/ibus.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail\r" 11send -- "firejail\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}
16after 100 16after 100
17 17
diff --git a/test/environment/keep-fd.exp b/test/environment/keep-fd.exp
index 222234ceb..440cbd860 100755
--- a/test/environment/keep-fd.exp
+++ b/test/environment/keep-fd.exp
@@ -47,7 +47,7 @@ after 100
47send -- "firejail --noprofile\r" 47send -- "firejail --noprofile\r"
48expect { 48expect {
49 timeout {puts "TESTING ERROR 2\n";exit} 49 timeout {puts "TESTING ERROR 2\n";exit}
50 "Child process initialized" 50 -re {Child process initialized in [0-9]+.[0-9]+ ms}
51} 51}
52after 100 52after 100
53 53
@@ -83,7 +83,7 @@ after 500
83send -- "firejail --noprofile --keep-fd=\$READ_FD\r" 83send -- "firejail --noprofile --keep-fd=\$READ_FD\r"
84expect { 84expect {
85 timeout {puts "TESTING ERROR 6\n";exit} 85 timeout {puts "TESTING ERROR 6\n";exit}
86 "Child process initialized" 86 -re {Child process initialized in [0-9]+.[0-9]+ ms}
87} 87}
88after 100 88after 100
89 89
@@ -119,7 +119,7 @@ after 500
119send -- "firejail --noprofile --keep-fd=\$WRITE_FD\r" 119send -- "firejail --noprofile --keep-fd=\$WRITE_FD\r"
120expect { 120expect {
121 timeout {puts "TESTING ERROR 10\n";exit} 121 timeout {puts "TESTING ERROR 10\n";exit}
122 "Child process initialized" 122 -re {Child process initialized in [0-9]+.[0-9]+ ms}
123} 123}
124after 100 124after 100
125 125
@@ -155,7 +155,7 @@ after 500
155send -- "firejail --noprofile --keep-fd=\$READ_FD,\$WRITE_FD\r" 155send -- "firejail --noprofile --keep-fd=\$READ_FD,\$WRITE_FD\r"
156expect { 156expect {
157 timeout {puts "TESTING ERROR 14\n";exit} 157 timeout {puts "TESTING ERROR 14\n";exit}
158 "Child process initialized" 158 -re {Child process initialized in [0-9]+.[0-9]+ ms}
159} 159}
160after 100 160after 100
161 161
@@ -191,7 +191,7 @@ after 500
191send -- "firejail --noprofile --keep-fd=all\r" 191send -- "firejail --noprofile --keep-fd=all\r"
192expect { 192expect {
193 timeout {puts "TESTING ERROR 18\n";exit} 193 timeout {puts "TESTING ERROR 18\n";exit}
194 "Child process initialized" 194 -re {Child process initialized in [0-9]+.[0-9]+ ms}
195} 195}
196after 100 196after 100
197 197
diff --git a/test/environment/machineid.exp b/test/environment/machineid.exp
index b7eb5c911..2392dc9d6 100755
--- a/test/environment/machineid.exp
+++ b/test/environment/machineid.exp
@@ -15,7 +15,7 @@ expect {
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Child process initialized" 18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19} 19}
20after 100 20after 100
21send -- "exit\r" 21send -- "exit\r"
diff --git a/test/environment/nice.exp b/test/environment/nice.exp
index 69e641448..823d10c67 100755
--- a/test/environment/nice.exp
+++ b/test/environment/nice.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --nice=15\r" 10send -- "firejail --nice=15\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
@@ -39,7 +39,7 @@ after 100
39send -- "firejail --profile=nice.profile\r" 39send -- "firejail --profile=nice.profile\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 10\n";exit} 41 timeout {puts "TESTING ERROR 10\n";exit}
42 "Child process initialized" 42 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
43} 43}
44sleep 1 44sleep 1
45 45
@@ -70,7 +70,7 @@ after 100
70send -- "firejail --nice=-5\r" 70send -- "firejail --nice=-5\r"
71expect { 71expect {
72 timeout {puts "TESTING ERROR 17\n";exit} 72 timeout {puts "TESTING ERROR 17\n";exit}
73 "Child process initialized" 73 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
74} 74}
75sleep 1 75sleep 1
76 76
diff --git a/test/environment/rlimit-join.exp b/test/environment/rlimit-join.exp
index 42a8df390..9e7161241 100755
--- a/test/environment/rlimit-join.exp
+++ b/test/environment/rlimit-join.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --noprofile --name=\"rlimit testing\"\r" 11send -- "firejail --noprofile --name=\"rlimit testing\"\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 1 16sleep 1
17 17
@@ -21,11 +21,15 @@ 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
25 29
26send -- "cat /proc/self/limits\r" 30send -- "cat /proc/self/limits\r"
27expect { 31expect {
28 timeout {puts "TESTING ERROR 2\n";exit} 32 timeout {puts "TESTING ERROR 3\n";exit}
29 "Max open files 1234 1234" 33 "Max open files 1234 1234"
30} 34}
31after 100 35after 100
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
index d0365d5e3..762f70ba9 100755
--- a/test/environment/rlimit-profile.exp
+++ b/test/environment/rlimit-profile.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --profile=rlimit.profile\r" 11send -- "firejail --profile=rlimit.profile\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 1 16sleep 1
17 17
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp
index 3bdbab4c2..acc87277b 100755
--- a/test/environment/rlimit.exp
+++ b/test/environment/rlimit.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\r" 11send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\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 1 16sleep 1
17 17
diff --git a/test/environment/shell-none.exp b/test/environment/shell-none.exp
index 0af1bb88b..512e2efc2 100755
--- a/test/environment/shell-none.exp
+++ b/test/environment/shell-none.exp
@@ -24,7 +24,7 @@ after 100
24send -- "firejail --shell=none ls\r" 24send -- "firejail --shell=none ls\r"
25expect { 25expect {
26 timeout {puts "TESTING ERROR 2\n";exit} 26 timeout {puts "TESTING ERROR 2\n";exit}
27 "Child process initialized" 27 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
28} 28}
29expect { 29expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 30 timeout {puts "TESTING ERROR 3\n";exit}
@@ -35,7 +35,7 @@ after 100
35send -- "firejail --profile=shell-none.profile ls\r" 35send -- "firejail --profile=shell-none.profile ls\r"
36expect { 36expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 37 timeout {puts "TESTING ERROR 4\n";exit}
38 "Child process initialized" 38 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
39} 39}
40expect { 40expect {
41 timeout {puts "TESTING ERROR 5\n";exit} 41 timeout {puts "TESTING ERROR 5\n";exit}
diff --git a/test/environment/sound.exp b/test/environment/sound.exp
index 784cdfe1b..7ee1c74d7 100755
--- a/test/environment/sound.exp
+++ b/test/environment/sound.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --nosound speaker-test\r" 11send -- "firejail --nosound speaker-test\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Child process initialized" 14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 2\n";exit} 17 timeout {puts "TESTING ERROR 2\n";exit}
@@ -22,7 +22,7 @@ sleep 2
22send -- "firejail --nosound aplay -l\r" 22send -- "firejail --nosound aplay -l\r"
23expect { 23expect {
24 timeout {puts "TESTING ERROR 3\n";exit} 24 timeout {puts "TESTING ERROR 3\n";exit}
25 "Child process initialized" 25 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
26} 26}
27expect { 27expect {
28 timeout {puts "TESTING ERROR 4\n";exit} 28 timeout {puts "TESTING ERROR 4\n";exit}
@@ -39,7 +39,7 @@ sleep 2
39send -- "firejail --profile=sound.profile speaker-test\r" 39send -- "firejail --profile=sound.profile speaker-test\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 11\n";exit} 41 timeout {puts "TESTING ERROR 11\n";exit}
42 "Child process initialized" 42 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
43} 43}
44expect { 44expect {
45 timeout {puts "TESTING ERROR 12\n";exit} 45 timeout {puts "TESTING ERROR 12\n";exit}
@@ -50,7 +50,7 @@ sleep 2
50send -- "firejail --profile=sound.profile aplay -l\r" 50send -- "firejail --profile=sound.profile aplay -l\r"
51expect { 51expect {
52 timeout {puts "TESTING ERROR 13\n";exit} 52 timeout {puts "TESTING ERROR 13\n";exit}
53 "Child process initialized" 53 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
54} 54}
55expect { 55expect {
56 timeout {puts "TESTING ERROR 14\n";exit} 56 timeout {puts "TESTING ERROR 14\n";exit}
@@ -67,7 +67,7 @@ sleep 2
67send -- "firejail aplay -l\r" 67send -- "firejail aplay -l\r"
68expect { 68expect {
69 timeout {puts "TESTING ERROR 23\n";exit} 69 timeout {puts "TESTING ERROR 23\n";exit}
70 "Child process initialized" 70 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
71} 71}
72expect { 72expect {
73 timeout {puts "TESTING ERROR 24\n";exit} 73 timeout {puts "TESTING ERROR 24\n";exit}
diff --git a/test/environment/timeout.exp b/test/environment/timeout.exp
index 901bed2e8..b38881c81 100755
--- a/test/environment/timeout.exp
+++ b/test/environment/timeout.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "time firejail --timeout=00:00:05\r" 10send -- "time firejail --timeout=00:00:05\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/environment/umask.exp b/test/environment/umask.exp
index d336ed2cd..46bd80a92 100755
--- a/test/environment/umask.exp
+++ b/test/environment/umask.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --noprofile\r" 10send -- "firejail --noprofile\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
index 13eee3433..9f871ea54 100755
--- a/test/environment/zsh.exp
+++ b/test/environment/zsh.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --private --shell=/bin/zsh\r" 11send -- "firejail --private --shell=/bin/zsh\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 1 16sleep 1
17 17