diff options
author | smitsohu <smitsohu@gmail.com> | 2022-02-09 18:04:36 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2022-02-09 18:30:45 +0100 |
commit | 7578e86ef8ddb78da44d426b94def77366627e0e (patch) | |
tree | e752d23f1b61a50fb7b7372d6799fe9ef4d111e4 /test/root | |
parent | Merge pull request #4915 from kmk3/keepassx-restore-nou2f (diff) | |
download | firejail-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/root')
-rwxr-xr-x | test/root/apache2.exp | 2 | ||||
-rwxr-xr-x | test/root/cgroup.exp | 12 | ||||
-rwxr-xr-x | test/root/firemon-events.exp | 2 | ||||
-rwxr-xr-x | test/root/isc-dhcp.exp | 2 | ||||
-rwxr-xr-x | test/root/join.exp | 18 | ||||
-rwxr-xr-x | test/root/login_nobody.exp | 2 | ||||
-rwxr-xr-x | test/root/nginx.exp | 2 | ||||
-rwxr-xr-x | test/root/option_bind_directory.exp | 2 | ||||
-rwxr-xr-x | test/root/option_bind_file.exp | 2 | ||||
-rwxr-xr-x | test/root/option_tmpfs.exp | 2 | ||||
-rwxr-xr-x | test/root/private.exp | 10 | ||||
-rwxr-xr-x | test/root/profile_tmpfs.exp | 2 | ||||
-rwxr-xr-x | test/root/seccomp-chmod.exp | 2 | ||||
-rwxr-xr-x | test/root/seccomp-chown.exp | 2 | ||||
-rwxr-xr-x | test/root/seccomp-umount.exp | 2 | ||||
-rwxr-xr-x | test/root/snmpd.exp | 2 | ||||
-rwxr-xr-x | test/root/unbound.exp | 2 | ||||
-rwxr-xr-x | test/root/whitelist.exp | 10 |
18 files changed, 43 insertions, 35 deletions
diff --git a/test/root/apache2.exp b/test/root/apache2.exp index c3e520224..a6b25de2f 100755 --- a/test/root/apache2.exp +++ b/test/root/apache2.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --name=apache /etc/init.d/apache2 start\r" | 10 | send -- "firejail --name=apache /etc/init.d/apache2 start\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/cgroup.exp b/test/root/cgroup.exp index f64edf4b9..9a1bbe161 100755 --- a/test/root/cgroup.exp +++ b/test/root/cgroup.exp | |||
@@ -20,7 +20,7 @@ expect { | |||
20 | send -- "firejail --name=\"join testing\" --cgroup=/sys/fs/cgroup/systemd/firejail/tasks\r" | 20 | send -- "firejail --name=\"join testing\" --cgroup=/sys/fs/cgroup/systemd/firejail/tasks\r" |
21 | expect { | 21 | expect { |
22 | timeout {puts "TESTING ERROR 1\n";exit} | 22 | timeout {puts "TESTING ERROR 1\n";exit} |
23 | "Child process initialized" | 23 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
24 | } | 24 | } |
25 | sleep 2 | 25 | sleep 2 |
26 | 26 | ||
@@ -37,14 +37,18 @@ expect { | |||
37 | timeout {puts "TESTING ERROR 3\n";exit} | 37 | timeout {puts "TESTING ERROR 3\n";exit} |
38 | "Switching to pid" | 38 | "Switching to pid" |
39 | } | 39 | } |
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 4\n";exit} | ||
42 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
43 | } | ||
40 | sleep 1 | 44 | sleep 1 |
41 | send -- "ps aux\r" | 45 | send -- "ps aux\r" |
42 | expect { | 46 | expect { |
43 | timeout {puts "TESTING ERROR 4\n";exit} | 47 | timeout {puts "TESTING ERROR 5\n";exit} |
44 | "/bin/bash" | 48 | "/bin/bash" |
45 | } | 49 | } |
46 | expect { | 50 | expect { |
47 | timeout {puts "TESTING ERROR 5\n";exit} | 51 | timeout {puts "TESTING ERROR 6\n";exit} |
48 | "/bin/bash" | 52 | "/bin/bash" |
49 | } | 53 | } |
50 | 54 | ||
@@ -53,7 +57,7 @@ after 100 | |||
53 | spawn $env(SHELL) | 57 | spawn $env(SHELL) |
54 | send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r" | 58 | send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r" |
55 | expect { | 59 | expect { |
56 | timeout {puts "TESTING ERROR 6\n";exit} | 60 | timeout {puts "TESTING ERROR 7\n";exit} |
57 | "3" | 61 | "3" |
58 | } | 62 | } |
59 | after 100 | 63 | after 100 |
diff --git a/test/root/firemon-events.exp b/test/root/firemon-events.exp index f2c0879db..8eab93a2a 100755 --- a/test/root/firemon-events.exp +++ b/test/root/firemon-events.exp | |||
@@ -18,7 +18,7 @@ set firejail_id $spawn_id | |||
18 | send -- "firejail\r" | 18 | send -- "firejail\r" |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 0\n";exit} | 20 | timeout {puts "TESTING ERROR 0\n";exit} |
21 | "Child process initialized" | 21 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
22 | } | 22 | } |
23 | 23 | ||
24 | # get messages on firemon | 24 | # get messages on firemon |
diff --git a/test/root/isc-dhcp.exp b/test/root/isc-dhcp.exp index 86291a9f9..20e5ef408 100755 --- a/test/root/isc-dhcp.exp +++ b/test/root/isc-dhcp.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" | 10 | send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
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 | |||
11 | send -- "firejail --name=jointesting --cpu=0 --nice=2\r" | 11 | send -- "firejail --name=jointesting --cpu=0 --nice=2\r" |
12 | expect { | 12 | expect { |
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 | } |
16 | sleep 2 | 16 | sleep 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 | } |
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 2\n";exit} | ||
26 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
27 | } | ||
24 | sleep 1 | 28 | sleep 1 |
25 | send -- "ps aux\r" | 29 | send -- "ps aux\r" |
26 | expect { | 30 | expect { |
27 | timeout {puts "TESTING ERROR 2\n";exit} | 31 | timeout {puts "TESTING ERROR 3\n";exit} |
28 | "/bin/bash" | 32 | "/bin/bash" |
29 | } | 33 | } |
30 | expect { | 34 | expect { |
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" | |||
36 | sleep 1 | 40 | sleep 1 |
37 | send -- "firejail --join-network=jointesting\r" | 41 | send -- "firejail --join-network=jointesting\r" |
38 | expect { | 42 | expect { |
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 | } |
42 | send -- "exit\r" | 46 | send -- "exit\r" |
43 | sleep 1 | 47 | sleep 1 |
44 | send -- "firejail --join-filesystem=jointesting\r" | 48 | send -- "firejail --join-filesystem=jointesting\r" |
45 | expect { | 49 | expect { |
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 | ||
50 | after 100 | 54 | after 100 |
diff --git a/test/root/login_nobody.exp b/test/root/login_nobody.exp index cf3df268d..9c0932196 100755 --- a/test/root/login_nobody.exp +++ b/test/root/login_nobody.exp | |||
@@ -11,7 +11,7 @@ match_max 100000 | |||
11 | send -- "su - nobody -s /usr/bin/firejail\r" | 11 | send -- "su - nobody -s /usr/bin/firejail\r" |
12 | expect { | 12 | expect { |
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 | } |
16 | after 100 | 16 | after 100 |
17 | 17 | ||
diff --git a/test/root/nginx.exp b/test/root/nginx.exp index af1ab8eb9..40d8cb51e 100755 --- a/test/root/nginx.exp +++ b/test/root/nginx.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --name=nginx /etc/init.d/nginx start\r" | 10 | send -- "firejail --name=nginx /etc/init.d/nginx start\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/option_bind_directory.exp b/test/root/option_bind_directory.exp index 122a1ea79..4fabf0cd8 100755 --- a/test/root/option_bind_directory.exp +++ b/test/root/option_bind_directory.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --bind=/tmp/chroot,mntpoint\r" | 10 | send -- "firejail --bind=/tmp/chroot,mntpoint\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
diff --git a/test/root/option_bind_file.exp b/test/root/option_bind_file.exp index 4e02638e6..6c796a2b0 100755 --- a/test/root/option_bind_file.exp +++ b/test/root/option_bind_file.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --bind=tmpfile,/etc/passwd\r" | 10 | send -- "firejail --bind=tmpfile,/etc/passwd\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
diff --git a/test/root/option_tmpfs.exp b/test/root/option_tmpfs.exp index b40335680..13820afe8 100755 --- a/test/root/option_tmpfs.exp +++ b/test/root/option_tmpfs.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --tmpfs=/var\r" | 10 | send -- "firejail --tmpfs=/var\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
diff --git a/test/root/private.exp b/test/root/private.exp index edc2520a2..70d0218fa 100755 --- a/test/root/private.exp +++ b/test/root/private.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --private\r" | 10 | send -- "firejail --private\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
@@ -42,7 +42,7 @@ after 100 | |||
42 | send -- "firejail --private-opt=firejail-test-file,firejail-test-dir --debug\r" | 42 | send -- "firejail --private-opt=firejail-test-file,firejail-test-dir --debug\r" |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 3\n";exit} | 44 | timeout {puts "TESTING ERROR 3\n";exit} |
45 | "Child process initialized" | 45 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
46 | } | 46 | } |
47 | sleep 1 | 47 | sleep 1 |
48 | 48 | ||
@@ -57,7 +57,7 @@ sleep 1 | |||
57 | send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" | 57 | send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" |
58 | expect { | 58 | expect { |
59 | timeout {puts "TESTING ERROR 3.1\n";exit} | 59 | timeout {puts "TESTING ERROR 3.1\n";exit} |
60 | "Child process initialized" | 60 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
61 | } | 61 | } |
62 | sleep 1 | 62 | sleep 1 |
63 | 63 | ||
@@ -80,7 +80,7 @@ after 100 | |||
80 | send -- "firejail --private-srv=firejail-test-file,firejail-test-dir --debug\r" | 80 | send -- "firejail --private-srv=firejail-test-file,firejail-test-dir --debug\r" |
81 | expect { | 81 | expect { |
82 | timeout {puts "TESTING ERROR 5\n";exit} | 82 | timeout {puts "TESTING ERROR 5\n";exit} |
83 | "Child process initialized" | 83 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
84 | } | 84 | } |
85 | sleep 1 | 85 | sleep 1 |
86 | 86 | ||
@@ -95,7 +95,7 @@ sleep 1 | |||
95 | send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" | 95 | send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" |
96 | expect { | 96 | expect { |
97 | timeout {puts "TESTING ERROR 5.1\n";exit} | 97 | timeout {puts "TESTING ERROR 5.1\n";exit} |
98 | "Child process initialized" | 98 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
99 | } | 99 | } |
100 | sleep 1 | 100 | sleep 1 |
101 | 101 | ||
diff --git a/test/root/profile_tmpfs.exp b/test/root/profile_tmpfs.exp index 8625f100a..fba63773f 100755 --- a/test/root/profile_tmpfs.exp +++ b/test/root/profile_tmpfs.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --profile=tmpfs.profile\r" | 10 | send -- "firejail --profile=tmpfs.profile\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
diff --git a/test/root/seccomp-chmod.exp b/test/root/seccomp-chmod.exp index 8fbb687d5..ef0453548 100755 --- a/test/root/seccomp-chmod.exp +++ b/test/root/seccomp-chmod.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r" | 10 | send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp index 0d9262494..968a4bc96 100755 --- a/test/root/seccomp-chown.exp +++ b/test/root/seccomp-chown.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --seccomp=chown,fchown,fchownat,lchown --private\r" | 10 | send -- "firejail --seccomp=chown,fchown,fchownat,lchown --private\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/seccomp-umount.exp b/test/root/seccomp-umount.exp index 51a7c7647..b99ec30f7 100755 --- a/test/root/seccomp-umount.exp +++ b/test/root/seccomp-umount.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --seccomp --noprofile\r" | 10 | send -- "firejail --seccomp --noprofile\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/snmpd.exp b/test/root/snmpd.exp index 7658cfc68..510abfbad 100755 --- a/test/root/snmpd.exp +++ b/test/root/snmpd.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" | 10 | send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/unbound.exp b/test/root/unbound.exp index 9e000be5e..6440304b2 100755 --- a/test/root/unbound.exp +++ b/test/root/unbound.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --name=unbound unbound\r" | 10 | send -- "firejail --name=unbound unbound\r" |
11 | expect { | 11 | expect { |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
diff --git a/test/root/whitelist.exp b/test/root/whitelist.exp index 1e29e3fef..2397f6a90 100755 --- a/test/root/whitelist.exp +++ b/test/root/whitelist.exp | |||
@@ -16,7 +16,7 @@ after 100 | |||
16 | send -- "firejail --whitelist=/mnt/firejail-test-file --whitelist=/mnt/firejail-test-dir --debug\r" | 16 | send -- "firejail --whitelist=/mnt/firejail-test-file --whitelist=/mnt/firejail-test-dir --debug\r" |
17 | expect { | 17 | expect { |
18 | timeout {puts "TESTING ERROR 0\n";exit} | 18 | timeout {puts "TESTING ERROR 0\n";exit} |
19 | "Child process initialized" | 19 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
20 | } | 20 | } |
21 | sleep 1 | 21 | sleep 1 |
22 | 22 | ||
@@ -39,7 +39,7 @@ after 100 | |||
39 | send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" | 39 | send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" |
40 | expect { | 40 | expect { |
41 | timeout {puts "TESTING ERROR 2\n";exit} | 41 | timeout {puts "TESTING ERROR 2\n";exit} |
42 | "Child process initialized" | 42 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
43 | } | 43 | } |
44 | sleep 1 | 44 | sleep 1 |
45 | 45 | ||
@@ -61,7 +61,7 @@ after 100 | |||
61 | send -- "firejail --whitelist=/media/firejail-test-file --whitelist=/media/firejail-test-dir --debug\r" | 61 | send -- "firejail --whitelist=/media/firejail-test-file --whitelist=/media/firejail-test-dir --debug\r" |
62 | expect { | 62 | expect { |
63 | timeout {puts "TESTING ERROR 4\n";exit} | 63 | timeout {puts "TESTING ERROR 4\n";exit} |
64 | "Child process initialized" | 64 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
65 | } | 65 | } |
66 | sleep 1 | 66 | sleep 1 |
67 | 67 | ||
@@ -78,7 +78,7 @@ sleep 1 | |||
78 | send -- "firejail --whitelist=/var/run --whitelist=/var/lock --debug\r" | 78 | send -- "firejail --whitelist=/var/run --whitelist=/var/lock --debug\r" |
79 | expect { | 79 | expect { |
80 | timeout {puts "TESTING ERROR 6\n";exit} | 80 | timeout {puts "TESTING ERROR 6\n";exit} |
81 | "Child process initialized" | 81 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
82 | } | 82 | } |
83 | sleep 1 | 83 | sleep 1 |
84 | 84 | ||
@@ -100,7 +100,7 @@ after 100 | |||
100 | send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" | 100 | send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" |
101 | expect { | 101 | expect { |
102 | timeout {puts "TESTING ERROR 8\n";exit} | 102 | timeout {puts "TESTING ERROR 8\n";exit} |
103 | "Child process initialized" | 103 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
104 | } | 104 | } |
105 | sleep 1 | 105 | sleep 1 |
106 | 106 | ||