diff options
author | netblue30 <netblue30@protonmail.com> | 2022-06-19 20:03:14 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-06-19 20:03:14 -0400 |
commit | bb14c205b562f6162aadff969540a956aacc0bd1 (patch) | |
tree | ed50420fce3c562382b9a1d190031ca64c2de631 /test/environment/zsh.exp | |
parent | Merge pull request #5209 from rusty-snake/shell-none-default (diff) | |
download | firejail-bb14c205b562f6162aadff969540a956aacc0bd1.tar.gz firejail-bb14c205b562f6162aadff969540a956aacc0bd1.tar.zst firejail-bb14c205b562f6162aadff969540a956aacc0bd1.zip |
shell none set as default (6)
Diffstat (limited to 'test/environment/zsh.exp')
-rwxr-xr-x | test/environment/zsh.exp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp deleted file mode 100755 index 9f871ea54..000000000 --- a/test/environment/zsh.exp +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | cd /home | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --private --shell=/bin/zsh\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "env | grep SHELL;pwd\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "SHELL" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 2\n";exit} | ||
25 | "/bin/zsh" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 3\n";exit} | ||
29 | "home" | ||
30 | } | ||
31 | send -- "exit\r" | ||
32 | after 100 | ||
33 | |||
34 | puts "\nall done\n" | ||