diff options
author | 2019-09-26 01:22:59 +0200 | |
---|---|---|
committer | 2019-09-26 01:22:59 +0200 | |
commit | 7be7e2d326540135273b221f594cd22057ac04dc (patch) | |
tree | f71f7cc696d922462183744588a0154c736e5227 /test/fs/readonly-whitelist.exp | |
parent | testing (diff) | |
download | firejail-7be7e2d326540135273b221f594cd22057ac04dc.tar.gz firejail-7be7e2d326540135273b221f594cd22057ac04dc.tar.zst firejail-7be7e2d326540135273b221f594cd22057ac04dc.zip |
testing: rename and simplify
cf. previous commits 5bb476f74efb4754b6f5f8d711c6b77898ef9385 and 4b1a6094d7f4d9c25ff4f0f9a31bcd83732910a1
Diffstat (limited to 'test/fs/readonly-whitelist.exp')
-rwxr-xr-x | test/fs/readonly-whitelist.exp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/fs/readonly-whitelist.exp b/test/fs/readonly-whitelist.exp deleted file mode 100755 index 784fc36bd..000000000 --- a/test/fs/readonly-whitelist.exp +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2019 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | |||
11 | send -- "firejail --noprofile --whitelist=~/_firejail_test_dir --read-only=~\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "echo mytest > ~/_firejail_test_dir/a\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "Read-only file system" | ||
22 | } | ||
23 | after 100 | ||
24 | |||
25 | send -- "exit\r" | ||
26 | sleep 1 | ||
27 | |||
28 | puts "\nall done\n" | ||