aboutsummaryrefslogtreecommitdiffstats
path: root/test/network
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/network
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/network')
-rwxr-xr-xtest/network/4bridges_arp.exp10
-rwxr-xr-xtest/network/4bridges_ip.exp10
-rwxr-xr-xtest/network/bandwidth.exp2
-rwxr-xr-xtest/network/dns-print.exp2
-rwxr-xr-xtest/network/firemon-arp.exp4
-rwxr-xr-xtest/network/firemon-interfaces.exp4
-rwxr-xr-xtest/network/firemon-route.exp4
-rwxr-xr-xtest/network/hostname.exp2
-rwxr-xr-xtest/network/interface.exp2
-rwxr-xr-xtest/network/ip6.exp6
-rwxr-xr-xtest/network/iprange.exp4
-rwxr-xr-xtest/network/net_arp.exp10
-rwxr-xr-xtest/network/net_defaultgw.exp2
-rwxr-xr-xtest/network/net_defaultgw2.exp2
-rwxr-xr-xtest/network/net_ip.exp4
-rwxr-xr-xtest/network/net_local.exp4
-rwxr-xr-xtest/network/net_mac.exp2
-rwxr-xr-xtest/network/net_macvlan2.exp2
-rwxr-xr-xtest/network/net_mtu.exp2
-rwxr-xr-xtest/network/net_netfilter.exp8
-rwxr-xr-xtest/network/net_noip.exp2
-rwxr-xr-xtest/network/net_noip2.exp2
-rwxr-xr-xtest/network/net_none.exp4
-rwxr-xr-xtest/network/net_profile.exp2
-rwxr-xr-xtest/network/net_scan.exp6
-rwxr-xr-xtest/network/net_unconfigured.exp10
-rwxr-xr-xtest/network/net_veth.exp4
-rwxr-xr-xtest/network/netfilter-template.exp2
-rwxr-xr-xtest/network/netns.exp2
-rwxr-xr-xtest/network/netstats.exp4
-rwxr-xr-xtest/network/veth-name.exp4
31 files changed, 64 insertions, 64 deletions
diff --git a/test/network/4bridges_arp.exp b/test/network/4bridges_arp.exp
index ccf6050fc..b7138851a 100755
--- a/test/network/4bridges_arp.exp
+++ b/test/network/4bridges_arp.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 0.4\n";exit} 29 timeout {puts "TESTING ERROR 0.4\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32sleep 1 32sleep 1
33send -- "exit\r" 33send -- "exit\r"
@@ -53,7 +53,7 @@ expect {
53} 53}
54expect { 54expect {
55 timeout {puts "TESTING ERROR 1.4\n";exit} 55 timeout {puts "TESTING ERROR 1.4\n";exit}
56 "Child process initialized" 56 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
57} 57}
58sleep 1 58sleep 1
59send -- "exit\r" 59send -- "exit\r"
@@ -80,7 +80,7 @@ expect {
80} 80}
81expect { 81expect {
82 timeout {puts "TESTING ERROR 2.4\n";exit} 82 timeout {puts "TESTING ERROR 2.4\n";exit}
83 "Child process initialized" 83 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
84} 84}
85sleep 1 85sleep 1
86send -- "exit\r" 86send -- "exit\r"
@@ -108,7 +108,7 @@ expect {
108} 108}
109expect { 109expect {
110 timeout {puts "TESTING ERROR 4\n";exit} 110 timeout {puts "TESTING ERROR 4\n";exit}
111 "Child process initialized" 111 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
112} 112}
113sleep 1 113sleep 1
114send -- "exit\r" 114send -- "exit\r"
@@ -137,7 +137,7 @@ expect {
137} 137}
138expect { 138expect {
139 timeout {puts "TESTING ERROR 9\n";exit} 139 timeout {puts "TESTING ERROR 9\n";exit}
140 "Child process initialized" 140 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
141} 141}
142sleep 1 142sleep 1
143 143
diff --git a/test/network/4bridges_ip.exp b/test/network/4bridges_ip.exp
index af47391ef..60e9d3bab 100755
--- a/test/network/4bridges_ip.exp
+++ b/test/network/4bridges_ip.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 0.4\n";exit} 29 timeout {puts "TESTING ERROR 0.4\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32sleep 1 32sleep 1
33send -- "exit\r" 33send -- "exit\r"
@@ -53,7 +53,7 @@ expect {
53} 53}
54expect { 54expect {
55 timeout {puts "TESTING ERROR 1.4\n";exit} 55 timeout {puts "TESTING ERROR 1.4\n";exit}
56 "Child process initialized" 56 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
57} 57}
58sleep 1 58sleep 1
59send -- "exit\r" 59send -- "exit\r"
@@ -80,7 +80,7 @@ expect {
80} 80}
81expect { 81expect {
82 timeout {puts "TESTING ERROR 2.4\n";exit} 82 timeout {puts "TESTING ERROR 2.4\n";exit}
83 "Child process initialized" 83 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
84} 84}
85sleep 1 85sleep 1
86send -- "exit\r" 86send -- "exit\r"
@@ -108,7 +108,7 @@ expect {
108} 108}
109expect { 109expect {
110 timeout {puts "TESTING ERROR 4\n";exit} 110 timeout {puts "TESTING ERROR 4\n";exit}
111 "Child process initialized" 111 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
112} 112}
113sleep 1 113sleep 1
114send -- "exit\r" 114send -- "exit\r"
@@ -137,7 +137,7 @@ expect {
137} 137}
138expect { 138expect {
139 timeout {puts "TESTING ERROR 9\n";exit} 139 timeout {puts "TESTING ERROR 9\n";exit}
140 "Child process initialized" 140 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
141} 141}
142 142
143# check default gateway 143# check default gateway
diff --git a/test/network/bandwidth.exp b/test/network/bandwidth.exp
index 6b85aa07f..1a27bc0bf 100755
--- a/test/network/bandwidth.exp
+++ b/test/network/bandwidth.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=test --net=br0\r" 10send -- "firejail --name=test --net=br0\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/network/dns-print.exp b/test/network/dns-print.exp
index 760e9c252..fd19b79ed 100755
--- a/test/network/dns-print.exp
+++ b/test/network/dns-print.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=test-dns --net=eth0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\r" 10send -- "firejail --name=test-dns --net=eth0 --dns=1.2.3.4 --dns=2.3.4.5 --dns=3.4.5.6\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/network/firemon-arp.exp b/test/network/firemon-arp.exp
index 5caa4e8bd..0e98b9f36 100755
--- a/test/network/firemon-arp.exp
+++ b/test/network/firemon-arp.exp
@@ -17,7 +17,7 @@ match_max 100000
17send -- "firejail --name=test1\r" 17send -- "firejail --name=test1\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 "Child process initialized" 20 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
21} 21}
22sleep 1 22sleep 1
23 23
@@ -25,7 +25,7 @@ spawn $env(SHELL)
25send -- "firejail --name=test2\r" 25send -- "firejail --name=test2\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 2\n";exit} 27 timeout {puts "TESTING ERROR 2\n";exit}
28 "Child process initialized" 28 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
29} 29}
30sleep 1 30sleep 1
31 31
diff --git a/test/network/firemon-interfaces.exp b/test/network/firemon-interfaces.exp
index f49e4c470..8eb9f4d87 100755
--- a/test/network/firemon-interfaces.exp
+++ b/test/network/firemon-interfaces.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --net=eth0 --name=test1\r" 10send -- "firejail --net=eth0 --name=test1\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 9\n";exit} 12 timeout {puts "TESTING ERROR 9\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
@@ -18,7 +18,7 @@ spawn $env(SHELL)
18send -- "firejail --net=eth0 --name=test2\r" 18send -- "firejail --net=eth0 --name=test2\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 9\n";exit} 20 timeout {puts "TESTING ERROR 9\n";exit}
21 "Child process initialized" 21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22} 22}
23sleep 1 23sleep 1
24 24
diff --git a/test/network/firemon-route.exp b/test/network/firemon-route.exp
index a3af6b2c6..4eea5c14c 100755
--- a/test/network/firemon-route.exp
+++ b/test/network/firemon-route.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=test1\r" 10send -- "firejail --name=test1\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
@@ -18,7 +18,7 @@ spawn $env(SHELL)
18send -- "firejail --name=test2\r" 18send -- "firejail --name=test2\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 1\n";exit} 20 timeout {puts "TESTING ERROR 1\n";exit}
21 "Child process initialized" 21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22} 22}
23sleep 1 23sleep 1
24 24
diff --git a/test/network/hostname.exp b/test/network/hostname.exp
index 3fe684a75..12266a170 100755
--- a/test/network/hostname.exp
+++ b/test/network/hostname.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --hostname=bingo --noprofile\r" 10send -- "firejail --hostname=bingo --noprofile\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
16send -- "stty -echo\r" 16send -- "stty -echo\r"
diff --git a/test/network/interface.exp b/test/network/interface.exp
index 4ae5b1da6..7c3e39fea 100755
--- a/test/network/interface.exp
+++ b/test/network/interface.exp
@@ -20,7 +20,7 @@ set chroot [lindex $argv 1]
20send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6\r" 20send -- "firejail --noprofile --interface=eth0.5 --interface=eth0.6\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 0\n";exit} 22 timeout {puts "TESTING ERROR 0\n";exit}
23 "Child process initialized" 23 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
24} 24}
25sleep 1 25sleep 1
26 26
diff --git a/test/network/ip6.exp b/test/network/ip6.exp
index ddc50754f..665081db7 100755
--- a/test/network/ip6.exp
+++ b/test/network/ip6.exp
@@ -23,7 +23,7 @@ expect {
23} 23}
24expect { 24expect {
25 timeout {puts "TESTING ERROR 3\n";exit} 25 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized" 26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27} 27}
28sleep 2 28sleep 2
29 29
@@ -64,7 +64,7 @@ expect {
64} 64}
65expect { 65expect {
66 timeout {puts "TESTING ERROR 13\n";exit} 66 timeout {puts "TESTING ERROR 13\n";exit}
67 "Child process initialized" 67 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
68} 68}
69sleep 2 69sleep 2
70 70
@@ -90,7 +90,7 @@ send -- "firejail --debug --netfilter6=ipv6.net\r"
90expect { 90expect {
91 timeout {puts "TESTING ERROR 11\n";exit} 91 timeout {puts "TESTING ERROR 11\n";exit}
92 "Installing IPv6 firewall" {puts "TESTING ERROR 12\n";exit} 92 "Installing IPv6 firewall" {puts "TESTING ERROR 12\n";exit}
93 "Child process initialized" 93 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
94} 94}
95after 100 95after 100
96send -- "exit\r" 96send -- "exit\r"
diff --git a/test/network/iprange.exp b/test/network/iprange.exp
index cfb1f25c7..d45ecaa40 100755
--- a/test/network/iprange.exp
+++ b/test/network/iprange.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 3\n";exit} 29 timeout {puts "TESTING ERROR 3\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32after 100 32after 100
33send -- "exit\r" 33send -- "exit\r"
@@ -53,7 +53,7 @@ expect {
53} 53}
54expect { 54expect {
55 timeout {puts "TESTING ERROR 8\n";exit} 55 timeout {puts "TESTING ERROR 8\n";exit}
56 "Child process initialized" 56 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
57} 57}
58after 100 58after 100
59send -- "exit\r" 59send -- "exit\r"
diff --git a/test/network/net_arp.exp b/test/network/net_arp.exp
index 4c4e893b1..dee4ac1c1 100755
--- a/test/network/net_arp.exp
+++ b/test/network/net_arp.exp
@@ -10,27 +10,27 @@ match_max 100000
10send -- "firejail --net=br0 sleep 20 &\r" 10send -- "firejail --net=br0 sleep 20 &\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}
15send -- "firejail --net=br0 sleep 20 &\r" 15send -- "firejail --net=br0 sleep 20 &\r"
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}
20send -- "firejail --net=br0 sleep 20 &\r" 20send -- "firejail --net=br0 sleep 20 &\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 2\n";exit} 22 timeout {puts "TESTING ERROR 2\n";exit}
23 "Child process initialized" 23 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
24} 24}
25send -- "firejail --net=br0 sleep 20 &\r" 25send -- "firejail --net=br0 sleep 20 &\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 3\n";exit}
28 "Child process initialized" 28 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
29} 29}
30send -- "firejail --net=br0 sleep 20 &\r" 30send -- "firejail --net=br0 sleep 20 &\r"
31expect { 31expect {
32 timeout {puts "TESTING ERROR 4\n";exit} 32 timeout {puts "TESTING ERROR 4\n";exit}
33 "Child process initialized" 33 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
34} 34}
35 35
36# will fail 36# will fail
diff --git a/test/network/net_defaultgw.exp b/test/network/net_defaultgw.exp
index e154daccf..6a5a0b64e 100755
--- a/test/network/net_defaultgw.exp
+++ b/test/network/net_defaultgw.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 4\n";exit} 29 timeout {puts "TESTING ERROR 4\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32sleep 1 32sleep 1
33 33
diff --git a/test/network/net_defaultgw2.exp b/test/network/net_defaultgw2.exp
index c32549d63..5d18571b6 100755
--- a/test/network/net_defaultgw2.exp
+++ b/test/network/net_defaultgw2.exp
@@ -15,7 +15,7 @@ expect {
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 4\n";exit} 17 timeout {puts "TESTING ERROR 4\n";exit}
18 "Child process initialized" 18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19} 19}
20sleep 1 20sleep 1
21 21
diff --git a/test/network/net_ip.exp b/test/network/net_ip.exp
index 604791f69..bdac67155 100755
--- a/test/network/net_ip.exp
+++ b/test/network/net_ip.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 4\n";exit} 29 timeout {puts "TESTING ERROR 4\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32sleep 1 32sleep 1
33send -- "exit\r" 33send -- "exit\r"
@@ -53,7 +53,7 @@ expect {
53} 53}
54expect { 54expect {
55 timeout {puts "TESTING ERROR 9\n";exit} 55 timeout {puts "TESTING ERROR 9\n";exit}
56 "Child process initialized" 56 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
57} 57}
58sleep 1 58sleep 1
59 59
diff --git a/test/network/net_local.exp b/test/network/net_local.exp
index 54e821a90..6d02de089 100755
--- a/test/network/net_local.exp
+++ b/test/network/net_local.exp
@@ -15,7 +15,7 @@ expect {
15} 15}
16expect { 16expect {
17 timeout {puts "TESTING ERROR 4\n";exit} 17 timeout {puts "TESTING ERROR 4\n";exit}
18 "Child process initialized" 18 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
19} 19}
20sleep 1 20sleep 1
21send -- "exit\r" 21send -- "exit\r"
@@ -25,7 +25,7 @@ sleep 1
25send -- "firejail --noprofile\r" 25send -- "firejail --noprofile\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 9\n";exit} 27 timeout {puts "TESTING ERROR 9\n";exit}
28 "Child process initialized" 28 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
29} 29}
30sleep 1 30sleep 1
31 31
diff --git a/test/network/net_mac.exp b/test/network/net_mac.exp
index 05400a761..3bd871a06 100755
--- a/test/network/net_mac.exp
+++ b/test/network/net_mac.exp
@@ -31,7 +31,7 @@ expect {
31} 31}
32expect { 32expect {
33 timeout {puts "TESTING ERROR 4\n";exit} 33 timeout {puts "TESTING ERROR 4\n";exit}
34 "Child process initialized" 34 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
35} 35}
36send -- "exit\r" 36send -- "exit\r"
37after 100 37after 100
diff --git a/test/network/net_macvlan2.exp b/test/network/net_macvlan2.exp
index 9be0a8580..abc6641bf 100755
--- a/test/network/net_macvlan2.exp
+++ b/test/network/net_macvlan2.exp
@@ -30,7 +30,7 @@ expect {
30} 30}
31expect { 31expect {
32 timeout {puts "TESTING ERROR 0.6\n";exit} 32 timeout {puts "TESTING ERROR 0.6\n";exit}
33 "Child process initialized" 33 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
34} 34}
35after 100 35after 100
36send -- "exit\r" 36send -- "exit\r"
diff --git a/test/network/net_mtu.exp b/test/network/net_mtu.exp
index 254207a4e..81c89e147 100755
--- a/test/network/net_mtu.exp
+++ b/test/network/net_mtu.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --net=br0 --mtu=1000 --noprofile\r" 11send -- "firejail --net=br0 --mtu=1000 --noprofile\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}
16sleep 1 16sleep 1
17 17
diff --git a/test/network/net_netfilter.exp b/test/network/net_netfilter.exp
index 65865122a..eef4a145f 100755
--- a/test/network/net_netfilter.exp
+++ b/test/network/net_netfilter.exp
@@ -27,7 +27,7 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 4\n";exit} 29 timeout {puts "TESTING ERROR 4\n";exit}
30 "Child process initialized" 30 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
31} 31}
32sleep 1 32sleep 1
33send -- "exit\r" 33send -- "exit\r"
@@ -41,7 +41,7 @@ expect {
41 "Chain INPUT (policy DROP" {puts "TESTING ERROR 5.1\n";exit} 41 "Chain INPUT (policy DROP" {puts "TESTING ERROR 5.1\n";exit}
42 "ACCEPT all -- any any anywhere" {puts "TESTING ERROR 5.1\n";exit} 42 "ACCEPT all -- any any anywhere" {puts "TESTING ERROR 5.1\n";exit}
43 "ACCEPT icmp -- any any anywhere" {puts "TESTING ERROR 5.1\n";exit} 43 "ACCEPT icmp -- any any anywhere" {puts "TESTING ERROR 5.1\n";exit}
44 "Child process initialized" 44 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
45} 45}
46sleep 1 46sleep 1
47send -- "exit\r" 47send -- "exit\r"
@@ -55,7 +55,7 @@ expect {
55} 55}
56expect { 56expect {
57 timeout {puts "TESTING ERROR 6.1\n";exit} 57 timeout {puts "TESTING ERROR 6.1\n";exit}
58 "Child process initialized" 58 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
59} 59}
60sleep 1 60sleep 1
61send -- "ping -c 1 -w 3 10.10.20.1\r" 61send -- "ping -c 1 -w 3 10.10.20.1\r"
@@ -75,7 +75,7 @@ expect {
75} 75}
76expect { 76expect {
77 timeout {puts "TESTING ERROR 7.1\n";exit} 77 timeout {puts "TESTING ERROR 7.1\n";exit}
78 "Child process initialized" 78 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
79} 79}
80sleep 2 80sleep 2
81send -- "ping -c 1 -w 3 10.10.20.1\r" 81send -- "ping -c 1 -w 3 10.10.20.1\r"
diff --git a/test/network/net_noip.exp b/test/network/net_noip.exp
index 37211d923..11d12c3d3 100755
--- a/test/network/net_noip.exp
+++ b/test/network/net_noip.exp
@@ -12,7 +12,7 @@ send -- "firejail --noprofile --net=br0 --ip=none\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth0" {puts "TESTING ERROR 1\n";exit} 14 "eth0" {puts "TESTING ERROR 1\n";exit}
15 "Child process initialized" 15 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
16} 16}
17sleep 1 17sleep 1
18send -- "bash\r" 18send -- "bash\r"
diff --git a/test/network/net_noip2.exp b/test/network/net_noip2.exp
index ebba23e81..09607d4b5 100755
--- a/test/network/net_noip2.exp
+++ b/test/network/net_noip2.exp
@@ -12,7 +12,7 @@ send -- "firejail --noprofile --net=br1 --ip=none --defaultgw=10.10.30.78\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth0" {puts "TESTING ERROR 1\n";exit} 14 "eth0" {puts "TESTING ERROR 1\n";exit}
15 "Child process initialized" 15 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
16} 16}
17sleep 1 17sleep 1
18send -- "bash\r" 18send -- "bash\r"
diff --git a/test/network/net_none.exp b/test/network/net_none.exp
index 95b1cf086..32d7532ce 100755
--- a/test/network/net_none.exp
+++ b/test/network/net_none.exp
@@ -12,7 +12,7 @@ send -- "firejail --net=none\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth0" {puts "TESTING ERROR 0.1\n";exit} 14 "eth0" {puts "TESTING ERROR 0.1\n";exit}
15 "Child process initialized" 15 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
16} 16}
17sleep 1 17sleep 1
18 18
@@ -47,7 +47,7 @@ send -- "firejail --profile=net_none.profile\r"
47expect { 47expect {
48 timeout {puts "TESTING ERROR 3\n";exit} 48 timeout {puts "TESTING ERROR 3\n";exit}
49 "eth0" {puts "TESTING ERROR 3.1\n";exit} 49 "eth0" {puts "TESTING ERROR 3.1\n";exit}
50 "Child process initialized" 50 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
51} 51}
52sleep 1 52sleep 1
53 53
diff --git a/test/network/net_profile.exp b/test/network/net_profile.exp
index 236603ff1..3d6f8fdbb 100755
--- a/test/network/net_profile.exp
+++ b/test/network/net_profile.exp
@@ -31,7 +31,7 @@ expect {
31} 31}
32expect { 32expect {
33 timeout {puts "TESTING ERROR 0.4\n";exit} 33 timeout {puts "TESTING ERROR 0.4\n";exit}
34 "Child process initialized" 34 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
35} 35}
36sleep 1 36sleep 1
37 37
diff --git a/test/network/net_scan.exp b/test/network/net_scan.exp
index 90e2e6b9d..42dd74df0 100755
--- a/test/network/net_scan.exp
+++ b/test/network/net_scan.exp
@@ -23,7 +23,7 @@ expect {
23} 23}
24expect { 24expect {
25 timeout {puts "TESTING ERROR 3\n";exit} 25 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized" 26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27} 27}
28sleep 1 28sleep 1
29 29
@@ -43,7 +43,7 @@ expect {
43} 43}
44expect { 44expect {
45 timeout {puts "TESTING ERROR 7\n";exit} 45 timeout {puts "TESTING ERROR 7\n";exit}
46 "Child process initialized" 46 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
47} 47}
48sleep 1 48sleep 1
49 49
@@ -63,7 +63,7 @@ expect {
63} 63}
64expect { 64expect {
65 timeout {puts "TESTING ERROR 11\n";exit} 65 timeout {puts "TESTING ERROR 11\n";exit}
66 "Child process initialized" 66 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
67} 67}
68sleep 1 68sleep 1
69 69
diff --git a/test/network/net_unconfigured.exp b/test/network/net_unconfigured.exp
index 434edaea3..92d7a33eb 100755
--- a/test/network/net_unconfigured.exp
+++ b/test/network/net_unconfigured.exp
@@ -12,7 +12,7 @@ send -- "firejail --noprofile --net=br-unconfigured --ip=none\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "eth0" {puts "TESTING ERROR 1\n";exit} 14 "eth0" {puts "TESTING ERROR 1\n";exit}
15 "Child process initialized" 15 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
16} 16}
17sleep 1 17sleep 1
18send -- "bash\r" 18send -- "bash\r"
@@ -53,7 +53,7 @@ send -- "firejail --noprofile --net=br-unconfigured\r"
53expect { 53expect {
54 timeout {puts "TESTING ERROR 7\n";exit} 54 timeout {puts "TESTING ERROR 7\n";exit}
55 "eth0" {puts "TESTING ERROR 8\n";exit} 55 "eth0" {puts "TESTING ERROR 8\n";exit}
56 "Child process initialized" 56 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
57} 57}
58sleep 1 58sleep 1
59send -- "bash\r" 59send -- "bash\r"
@@ -93,7 +93,7 @@ send -- "firejail --noprofile --net=br-unconfigured --defaultgw=10.10.80.1\r"
93expect { 93expect {
94 timeout {puts "TESTING ERROR 14\n";exit} 94 timeout {puts "TESTING ERROR 14\n";exit}
95 "eth0" {puts "TESTING ERROR 15\n";exit} 95 "eth0" {puts "TESTING ERROR 15\n";exit}
96 "Child process initialized" 96 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
97} 97}
98sleep 1 98sleep 1
99send -- "bash\r" 99send -- "bash\r"
@@ -133,7 +133,7 @@ send -- "firejail --noprofile --net=br-unconfigured --ip=10.10.80.1 --defaultgw=
133expect { 133expect {
134 timeout {puts "TESTING ERROR 21\n";exit} 134 timeout {puts "TESTING ERROR 21\n";exit}
135 "eth0" {puts "TESTING ERROR 22\n";exit} 135 "eth0" {puts "TESTING ERROR 22\n";exit}
136 "Child process initialized" 136 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
137} 137}
138sleep 1 138sleep 1
139send -- "bash\r" 139send -- "bash\r"
@@ -180,7 +180,7 @@ expect {
180} 180}
181expect { 181expect {
182 timeout {puts "TESTING ERROR 30\n";exit} 182 timeout {puts "TESTING ERROR 30\n";exit}
183 "Child process initialized" 183 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
184} 184}
185sleep 1 185sleep 1
186send -- "bash\r" 186send -- "bash\r"
diff --git a/test/network/net_veth.exp b/test/network/net_veth.exp
index 22388ed89..781cc194c 100755
--- a/test/network/net_veth.exp
+++ b/test/network/net_veth.exp
@@ -42,7 +42,7 @@ expect {
42} 42}
43expect { 43expect {
44 timeout {puts "TESTING ERROR 9\n";exit} 44 timeout {puts "TESTING ERROR 9\n";exit}
45 "Child process initialized" 45 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
46} 46}
47sleep 1 47sleep 1
48send -- "exit\r" 48send -- "exit\r"
@@ -119,7 +119,7 @@ expect {
119} 119}
120expect { 120expect {
121 timeout {puts "TESTING ERROR 27\n";exit} 121 timeout {puts "TESTING ERROR 27\n";exit}
122 "Child process initialized" 122 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
123} 123}
124sleep 1 124sleep 1
125send -- "exit\r" 125send -- "exit\r"
diff --git a/test/network/netfilter-template.exp b/test/network/netfilter-template.exp
index f77e4f025..ba09aaea7 100755
--- a/test/network/netfilter-template.exp
+++ b/test/network/netfilter-template.exp
@@ -18,7 +18,7 @@ sleep 1
18send -- "firejail --net=br1 --ip=10.10.30.10 --name=test1 --netfilter=/etc/firejail/tcpserver.net,5555 ./tcpserver 5555\r" 18send -- "firejail --net=br1 --ip=10.10.30.10 --name=test1 --netfilter=/etc/firejail/tcpserver.net,5555 ./tcpserver 5555\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 1\n";exit} 20 timeout {puts "TESTING ERROR 1\n";exit}
21 "Child process initialized" 21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22} 22}
23sleep 1 23sleep 1
24 24
diff --git a/test/network/netns.exp b/test/network/netns.exp
index f33e5f3c0..034f4736e 100755
--- a/test/network/netns.exp
+++ b/test/network/netns.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --netns=red --noprofile\r" 10send -- "firejail --netns=red --noprofile\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}
15after 100 15after 100
16 16
diff --git a/test/network/netstats.exp b/test/network/netstats.exp
index b07fbd535..e06e6769d 100755
--- a/test/network/netstats.exp
+++ b/test/network/netstats.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --net=eth0 --name=test1\r" 10send -- "firejail --net=eth0 --name=test1\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 9\n";exit} 12 timeout {puts "TESTING ERROR 9\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
@@ -18,7 +18,7 @@ spawn $env(SHELL)
18send -- "firejail --net=eth0 --name=test2\r" 18send -- "firejail --net=eth0 --name=test2\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 9\n";exit} 20 timeout {puts "TESTING ERROR 9\n";exit}
21 "Child process initialized" 21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22} 22}
23sleep 1 23sleep 1
24 24
diff --git a/test/network/veth-name.exp b/test/network/veth-name.exp
index 1be6a15ea..1c9f23c54 100755
--- a/test/network/veth-name.exp
+++ b/test/network/veth-name.exp
@@ -23,7 +23,7 @@ expect {
23} 23}
24expect { 24expect {
25 timeout {puts "TESTING ERROR 3\n";exit} 25 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized" 26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27} 27}
28sleep 1 28sleep 1
29 29
@@ -55,7 +55,7 @@ expect {
55} 55}
56expect { 56expect {
57 timeout {puts "TESTING ERROR 9\n";exit} 57 timeout {puts "TESTING ERROR 9\n";exit}
58 "Child process initialized" 58 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
59} 59}
60sleep 1 60sleep 1
61 61