diff options
Diffstat (limited to 'test/extract_command.exp')
-rwxr-xr-x | test/extract_command.exp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/extract_command.exp b/test/extract_command.exp index c49614b84..b4a1eeeb5 100755 --- a/test/extract_command.exp +++ b/test/extract_command.exp | |||
@@ -4,20 +4,24 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail --debug /usr/bin/firefox www.gentoo.org\r" | 7 | send -- "firejail --debug ls -al\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Reading profile /etc/firejail/firefox.profile" | 10 | "Reading profile /etc/firejail/generic.profile" |
11 | } | 11 | } |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "Starting /usr/bin/firefox" | 14 | "Starting ls -al" |
15 | } | 15 | } |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 1\n";exit} | 17 | timeout {puts "TESTING ERROR 2\n";exit} |
18 | "Child process initialized" | 18 | "Child process initialized" |
19 | } | 19 | } |
20 | sleep 5 | 20 | expect { |
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "parent is shutting down, bye" | ||
23 | } | ||
24 | sleep 1 | ||
21 | 25 | ||
22 | puts "\n" | 26 | puts "\nall done\n" |
23 | 27 | ||