aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/join-profile.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-28 20:47:36 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-28 20:47:36 -0400
commit051e84a0068a503a4531712ab7f882240b003b15 (patch)
tree298329f7fa3804aaa97ffe44c8cfcbbece187b30 /test/utils/join-profile.exp
parentMerge pull request #488 from reinerh/master (diff)
downloadfirejail-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-xtest/utils/join-profile.exp26
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
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7
7send -- "firejail --profile=name.profile\r" 8send -- "firejail --profile=name.profile\r"
8expect { 9expect {
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}
12sleep 3 13sleep 2
13 14
14spawn $env(SHELL) 15spawn $env(SHELL)
15send -- "firejail --join=jointesting;pwd\r" 16send -- "firejail --join=jointesting\r"
16expect { 17expect {
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}
20sleep 3 21sleep 1
21 22send -- "ps aux\r"
22
23spawn $env(SHELL)
24send -- "firejail --shutdown=jointesting;pwd\r"
25expect { 23expect {
26 timeout {puts "TESTING ERROR 3\n";exit} 24 timeout {puts "TESTING ERROR 2\n";exit}
27 "home" 25 "/bin/bash"
28} 26}
29sleep 5
30
31send -- "firejail --list;pwd\r"
32expect { 27expect {
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
32send -- "exit"
37sleep 1 33sleep 1
38 34
39puts "\nall done\n" 35puts "\nall done\n"