diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-28 20:47:36 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-28 20:47:36 -0400 |
commit | 051e84a0068a503a4531712ab7f882240b003b15 (patch) | |
tree | 298329f7fa3804aaa97ffe44c8cfcbbece187b30 /test/utils/join-profile.exp | |
parent | Merge pull request #488 from reinerh/master (diff) | |
download | firejail-051e84a0068a503a4531712ab7f882240b003b15.tar.gz firejail-051e84a0068a503a4531712ab7f882240b003b15.tar.zst firejail-051e84a0068a503a4531712ab7f882240b003b15.zip |
removed pwd from test/utils
Diffstat (limited to 'test/utils/join-profile.exp')
-rwxr-xr-x | test/utils/join-profile.exp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/test/utils/join-profile.exp b/test/utils/join-profile.exp index 9200980a1..a4262b999 100755 --- a/test/utils/join-profile.exp +++ b/test/utils/join-profile.exp | |||
@@ -4,36 +4,32 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | |||
7 | send -- "firejail --profile=name.profile\r" | 8 | send -- "firejail --profile=name.profile\r" |
8 | expect { | 9 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 10 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Child process initialized" | 11 | "Child process initialized" |
11 | } | 12 | } |
12 | sleep 3 | 13 | sleep 2 |
13 | 14 | ||
14 | spawn $env(SHELL) | 15 | spawn $env(SHELL) |
15 | send -- "firejail --join=jointesting;pwd\r" | 16 | send -- "firejail --join=jointesting\r" |
16 | expect { | 17 | expect { |
17 | timeout {puts "TESTING ERROR 1\n";exit} | 18 | timeout {puts "TESTING ERROR 1\n";exit} |
18 | "Switching to pid" | 19 | "Switching to pid" |
19 | } | 20 | } |
20 | sleep 3 | 21 | sleep 1 |
21 | 22 | send -- "ps aux\r" | |
22 | |||
23 | spawn $env(SHELL) | ||
24 | send -- "firejail --shutdown=jointesting;pwd\r" | ||
25 | expect { | 23 | expect { |
26 | timeout {puts "TESTING ERROR 3\n";exit} | 24 | timeout {puts "TESTING ERROR 2\n";exit} |
27 | "home" | 25 | "/bin/bash" |
28 | } | 26 | } |
29 | sleep 5 | ||
30 | |||
31 | send -- "firejail --list;pwd\r" | ||
32 | expect { | 27 | expect { |
33 | timeout {puts "TESTING ERROR 4\n";exit} | 28 | timeout {puts "TESTING ERROR 3\n";exit} |
34 | "jointesting" {puts "TESTING ERROR 5\n";exit} | 29 | "/bin/bash" |
35 | "home" | ||
36 | } | 30 | } |
31 | |||
32 | send -- "exit" | ||
37 | sleep 1 | 33 | sleep 1 |
38 | 34 | ||
39 | puts "\nall done\n" | 35 | puts "\nall done\n" |