diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2018-08-15 19:31:34 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2018-08-15 19:31:34 +0200 |
commit | df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9 (patch) | |
tree | ede1b90fb10c8eb3f84a94fa2f61b767375dcce4 /test/fs | |
parent | improve detection of symbolic links (diff) | |
download | firejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.tar.gz firejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.tar.zst firejail-df3f0b618e237cd2fcd74ea7a3ef398fbe290ca9.zip |
tests: make sure needed directories exist
Diffstat (limited to 'test/fs')
-rwxr-xr-x | test/fs/fs.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh index c1b589c29..55f5a8770 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh | |||
@@ -6,6 +6,9 @@ | |||
6 | export MALLOC_CHECK_=3 | 6 | export MALLOC_CHECK_=3 |
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | 7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) |
8 | 8 | ||
9 | # These directories are required by some tests: | ||
10 | mkdir -p ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Videos | ||
11 | |||
9 | rm -fr ~/_firejail_test_* | 12 | rm -fr ~/_firejail_test_* |
10 | echo "TESTING: mkdir/mkfile (test/fs/mkdir_mkfile.exp)" | 13 | echo "TESTING: mkdir/mkfile (test/fs/mkdir_mkfile.exp)" |
11 | ./mkdir_mkfile.exp | 14 | ./mkdir_mkfile.exp |
@@ -58,7 +61,7 @@ echo "TESTING: empty private-etc (test/fs/private-etc-empty.exp)" | |||
58 | echo "TESTING: private-bin (test/fs/private-bin.exp)" | 61 | echo "TESTING: private-bin (test/fs/private-bin.exp)" |
59 | ./private-bin.exp | 62 | ./private-bin.exp |
60 | 63 | ||
61 | echo "TESTING: macros (test/fs/macro..exp)" | 64 | echo "TESTING: macros (test/fs/macro.exp)" |
62 | ./macro.exp | 65 | ./macro.exp |
63 | 66 | ||
64 | echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)" | 67 | echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)" |