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/features/3.3.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/features/3.3.exp')
-rwxr-xr-x | test/features/3.3.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/features/3.3.exp b/test/features/3.3.exp index fc1a982ec..71b6f70db 100755 --- a/test/features/3.3.exp +++ b/test/features/3.3.exp | |||
@@ -18,7 +18,7 @@ set chroot [lindex $argv 1] | |||
18 | send -- "firejail --noprofile --blacklist=/home/netblue/.config\r" | 18 | send -- "firejail --noprofile --blacklist=/home/netblue/.config\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 | sleep 1 | 23 | sleep 1 |
24 | 24 | ||
@@ -40,7 +40,7 @@ if { $overlay == "overlay" } { | |||
40 | expect { | 40 | expect { |
41 | timeout {puts "TESTING ERROR 2\n";exit} | 41 | timeout {puts "TESTING ERROR 2\n";exit} |
42 | "overlay option is not available" {puts "grsecurity\n"; exit} | 42 | "overlay option is not available" {puts "grsecurity\n"; exit} |
43 | "Child process initialized" {puts "normal system\n"} | 43 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"} |
44 | } | 44 | } |
45 | sleep 1 | 45 | sleep 1 |
46 | 46 | ||
@@ -61,7 +61,7 @@ if { $chroot == "chroot" } { | |||
61 | send -- "firejail --noprofile --chroot=/tmp/chroot --blacklist=/home/netblue/.config\r" | 61 | send -- "firejail --noprofile --chroot=/tmp/chroot --blacklist=/home/netblue/.config\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 | ||