aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/join2.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/join2.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/join2.exp')
-rwxr-xr-xtest/utils/join2.exp25
1 files changed, 10 insertions, 15 deletions
diff --git a/test/utils/join2.exp b/test/utils/join2.exp
index 820c43174..82540fe39 100755
--- a/test/utils/join2.exp
+++ b/test/utils/join2.exp
@@ -8,36 +8,31 @@ cd /home
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10 10
11send -- "firejail --name=\"svn testing\"\r" 11send -- "firejail --name=\"join testing\"\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --join=\"svn testing\";pwd\r" 19send -- "firejail --join=\"join testing\"\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24sleep 1 24sleep 1
25 25send -- "ps aux\r"
26
27spawn $env(SHELL)
28send -- "firejail --shutdown=\"svn testing\";pwd\r"
29expect { 26expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 2\n";exit}
31 "home" 28 "/bin/bash"
32} 29}
33sleep 1
34
35send -- "firejail --list;pwd\r"
36expect { 30expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
38 "svn testing" {puts "TESTING ERROR 5\n";exit} 32 "/bin/bash"
39 "home"
40} 33}
34
35send -- "exit"
41sleep 1 36sleep 1
42 37
43puts "\nall done\n" 38puts "\nall done\n"