diff options
author | 2022-06-19 20:03:14 -0400 | |
---|---|---|
committer | 2022-06-19 20:03:14 -0400 | |
commit | bb14c205b562f6162aadff969540a956aacc0bd1 (patch) | |
tree | ed50420fce3c562382b9a1d190031ca64c2de631 /test/environment/dash.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/dash.exp')
-rwxr-xr-x | test/environment/dash.exp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/environment/dash.exp b/test/environment/dash.exp deleted file mode 100755 index 4dd5cac9f..000000000 --- a/test/environment/dash.exp +++ /dev/null | |||
@@ -1,44 +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 --tracelog --shell=/bin/dash\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 -- "ls -al;pwd\r" | ||
19 | #expect { | ||
20 | # timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | # ".zshrc" | ||
22 | #} | ||
23 | #expect { | ||
24 | # timeout {puts "TESTING ERROR 1.1\n";exit} | ||
25 | # "home" | ||
26 | #} | ||
27 | |||
28 | send -- "env | grep SHELL;pwd\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 2\n";exit} | ||
31 | "SHELL" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
35 | "/bin/dash" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
39 | "home" | ||
40 | } | ||
41 | send -- "exit\r" | ||
42 | after 100 | ||
43 | |||
44 | puts "\n" | ||