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/network/4bridges_ip.exp | |
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/network/4bridges_ip.exp')
-rwxr-xr-x | test/network/4bridges_ip.exp | 10 |
1 files changed, 5 insertions, 5 deletions
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 | } |
28 | expect { | 28 | expect { |
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 | } |
32 | sleep 1 | 32 | sleep 1 |
33 | send -- "exit\r" | 33 | send -- "exit\r" |
@@ -53,7 +53,7 @@ expect { | |||
53 | } | 53 | } |
54 | expect { | 54 | expect { |
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 | } |
58 | sleep 1 | 58 | sleep 1 |
59 | send -- "exit\r" | 59 | send -- "exit\r" |
@@ -80,7 +80,7 @@ expect { | |||
80 | } | 80 | } |
81 | expect { | 81 | expect { |
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 | } |
85 | sleep 1 | 85 | sleep 1 |
86 | send -- "exit\r" | 86 | send -- "exit\r" |
@@ -108,7 +108,7 @@ expect { | |||
108 | } | 108 | } |
109 | expect { | 109 | expect { |
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 | } |
113 | sleep 1 | 113 | sleep 1 |
114 | send -- "exit\r" | 114 | send -- "exit\r" |
@@ -137,7 +137,7 @@ expect { | |||
137 | } | 137 | } |
138 | expect { | 138 | expect { |
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 |