diff options
author | 2016-11-19 22:12:51 +0100 | |
---|---|---|
committer | 2016-11-19 22:12:51 +0100 | |
commit | 530db20edeee191a3b60d56b3b87999a3d10979e (patch) | |
tree | 9053d21580917bdf0e6480b2b2875e90b08b1d8c /test/fs/read-write.exp | |
parent | readme updated (diff) | |
parent | qemu profile (diff) | |
download | firejail-530db20edeee191a3b60d56b3b87999a3d10979e.tar.gz firejail-530db20edeee191a3b60d56b3b87999a3d10979e.tar.zst firejail-530db20edeee191a3b60d56b3b87999a3d10979e.zip |
fixed readme
Diffstat (limited to 'test/fs/read-write.exp')
-rwxr-xr-x | test/fs/read-write.exp | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/test/fs/read-write.exp b/test/fs/read-write.exp index 57986488e..19a915f66 100755 --- a/test/fs/read-write.exp +++ b/test/fs/read-write.exp | |||
@@ -15,37 +15,21 @@ expect { | |||
15 | } | 15 | } |
16 | sleep 1 | 16 | sleep 1 |
17 | 17 | ||
18 | send -- "echo mytest >~/_firejail_test_dir/a;echo done\r" | 18 | send -- "echo mytest > ~/_firejail_test_dir/a\r" |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 1\n";exit} | 20 | timeout {puts "TESTING ERROR 5\n";exit} |
21 | "done" | 21 | "Read-only file system" |
22 | } | ||
23 | after 100 | ||
24 | |||
25 | send -- "echo mytest >~/_firejail_test_dir/test1/b;echo done\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 2\n";exit} | ||
28 | "done" | ||
29 | } | 22 | } |
30 | after 100 | 23 | after 100 |
31 | 24 | ||
32 | send -- "cat ~/_firejail_test_dir/a;echo done\r" | 25 | send -- "echo mytest > ~/_firejail_test_dir/test1/b\r" |
33 | expect { | 26 | sleep 1 |
34 | timeout {puts "TESTING ERROR 3\n";exit} | ||
35 | "mytest" {puts "TESTING ERROR 4\n";exit} | ||
36 | "done" | ||
37 | } | ||
38 | after 100 | ||
39 | 27 | ||
40 | send -- "cat ~/_firejail_test_dir/test1/b;echo done\r" | 28 | send -- "cat ~/_firejail_test_dir/test1/b\r" |
41 | expect { | 29 | expect { |
42 | timeout {puts "TESTING ERROR 5\n";exit} | 30 | timeout {puts "TESTING ERROR 5\n";exit} |
43 | "mytest" | 31 | "mytest" |
44 | } | 32 | } |
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 6\n";exit} | ||
47 | "done" | ||
48 | } | ||
49 | 33 | ||
50 | after 100 | 34 | after 100 |
51 | puts "\nall done\n" | 35 | puts "\nall done\n" |