diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-28 15:22:09 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-28 15:22:09 -0400 |
commit | c4f10394ab24327b1f303cba493723def9ab99ba (patch) | |
tree | 48955affcb0827807cfdacaf496d9cabb82ab93b /test/environment/zsh.exp | |
parent | removed cd home from /test/environment/* files (diff) | |
download | firejail-c4f10394ab24327b1f303cba493723def9ab99ba.tar.gz firejail-c4f10394ab24327b1f303cba493723def9ab99ba.tar.zst firejail-c4f10394ab24327b1f303cba493723def9ab99ba.zip |
fixed make test-envirnment for running under /tmp
Diffstat (limited to 'test/environment/zsh.exp')
-rwxr-xr-x | test/environment/zsh.exp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp index e625c4793..7ab7faa76 100755 --- a/test/environment/zsh.exp +++ b/test/environment/zsh.exp | |||
@@ -4,7 +4,6 @@ | |||
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | set timeout 10 | 6 | set timeout 10 |
7 | #cd /home | ||
8 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
9 | match_max 100000 | 8 | match_max 100000 |
10 | 9 | ||
@@ -15,15 +14,12 @@ expect { | |||
15 | } | 14 | } |
16 | sleep 1 | 15 | sleep 1 |
17 | 16 | ||
18 | send -- "ls -al;pwd\r" | 17 | send -- "find /home\r" |
19 | expect { | 18 | expect { |
20 | timeout {puts "TESTING ERROR 1\n";exit} | 19 | timeout {puts "TESTING ERROR 1\n";exit} |
21 | ".zshrc" | 20 | ".zshrc" |
22 | } | 21 | } |
23 | expect { | 22 | |
24 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
25 | "home" | ||
26 | } | ||
27 | send -- "env | grep SHELL;pwd\r" | 23 | send -- "env | grep SHELL;pwd\r" |
28 | expect { | 24 | expect { |
29 | timeout {puts "TESTING ERROR 2\n";exit} | 25 | timeout {puts "TESTING ERROR 2\n";exit} |
@@ -33,12 +29,8 @@ expect { | |||
33 | timeout {puts "TESTING ERROR 2.1\n";exit} | 29 | timeout {puts "TESTING ERROR 2.1\n";exit} |
34 | "/usr/bin/zsh" | 30 | "/usr/bin/zsh" |
35 | } | 31 | } |
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
38 | "home" | ||
39 | } | ||
40 | send -- "exit\r" | 32 | send -- "exit\r" |
41 | sleep 1 | 33 | sleep 1 |
42 | 34 | ||
43 | puts "\n" | 35 | puts "\nall done\n" |
44 | 36 | ||