diff options
author | netblue30 <netblue30@protonmail.com> | 2022-02-09 13:03:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 13:03:10 -0500 |
commit | 03395e10bfd597eff5e324be53e24eb44898db98 (patch) | |
tree | 68f382289719461dc85180b8f7abb327b5787c18 /test/utils/tree.exp | |
parent | Fix iridium.profile (diff) | |
parent | testing: fix expect matching of numbers (diff) | |
download | firejail-03395e10bfd597eff5e324be53e24eb44898db98.tar.gz firejail-03395e10bfd597eff5e324be53e24eb44898db98.tar.zst firejail-03395e10bfd597eff5e324be53e24eb44898db98.zip |
Merge pull request #4918 from smitsohu/tests2
testing: fix expect matching of numbers
Diffstat (limited to 'test/utils/tree.exp')
-rwxr-xr-x | test/utils/tree.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utils/tree.exp b/test/utils/tree.exp index 9cdb09639..4b1f70bd2 100755 --- a/test/utils/tree.exp +++ b/test/utils/tree.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail\r" | 10 | send -- "firejail\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 | after 100 | 15 | after 100 |
16 | 16 | ||
@@ -18,7 +18,7 @@ spawn $env(SHELL) | |||
18 | send -- "firejail\r" | 18 | send -- "firejail\r" |
19 | expect { | 19 | expect { |
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 | } |
23 | after 100 | 23 | after 100 |
24 | 24 | ||
@@ -26,7 +26,7 @@ spawn $env(SHELL) | |||
26 | send -- "firejail\r" | 26 | send -- "firejail\r" |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 2\n";exit} | 28 | timeout {puts "TESTING ERROR 2\n";exit} |
29 | "Child process initialized" | 29 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
30 | } | 30 | } |
31 | sleep 1 | 31 | sleep 1 |
32 | 32 | ||