diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2016-08-07 18:06:49 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2016-08-07 18:23:33 +0200 |
commit | 7f31ebff5c7401c16b1b179380ba782ac4934d65 (patch) | |
tree | 7b9078c0e35365e0c97ad45dcd1b778eda29b181 | |
parent | tar requires shell for executing compressors like bzip2 (diff) | |
download | firejail-7f31ebff5c7401c16b1b179380ba782ac4934d65.tar.gz firejail-7f31ebff5c7401c16b1b179380ba782ac4934d65.tar.zst firejail-7f31ebff5c7401c16b1b179380ba782ac4934d65.zip |
Don't assume ~/.bashrc exists
-rwxr-xr-x | test/sysutils/file.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sysutils/file.exp b/test/sysutils/file.exp index e40b83197..a8ad84d12 100755 --- a/test/sysutils/file.exp +++ b/test/sysutils/file.exp | |||
@@ -7,10 +7,12 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "firejail file ~/.bashrc\r" | 10 | send -- "echo 'test string for firejail test' > /tmp/firejail_test.txt; firejail file /tmp/firejail_test.txt\r" |
11 | expect { | 11 | expect { |
12 | timeout {puts "TESTING ERROR 1\n";exit} | 12 | timeout {puts "TESTING ERROR 1\n";exit} |
13 | "ASCII text" | 13 | "ASCII text" |
14 | } | 14 | } |
15 | send -- "rm /tmp/firejail_test.txt\r" | ||
16 | sleep 1 | ||
15 | 17 | ||
16 | puts "\nall done\n" | 18 | puts "\nall done\n" |