diff options
author | Jakob Unterwurzacher | 2018-03-05 23:40:08 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-03-05 23:40:08 +0100 |
commit | 4732e33a9a39935ecc07dfb7e857cc05b6fc6045 (patch) | |
tree | b8424257a8f23bb994a10dcce45b744a3bebe7b7 /test.bash | |
parent | 18d4159d18b370f82dafd1c7627a6eb1f386cdfb (diff) |
macos: tests: fix deleting of scratch dir
macos rm does not understand --one-file-system,
and it cannot handle unreadable directories.
Diffstat (limited to 'test.bash')
-rwxr-xr-x | test.bash | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -49,7 +49,12 @@ go test -count 1 ./... "$@" 200>&- # The tests cannot to this themselves as they are run in parallel. # Don't descend into possibly still mounted example filesystems. -rm -Rf --one-file-system $TESTDIR +if [[ $OSTYPE == *linux* ]] ; then + rm -Rf --one-file-system $TESTDIR +else + # MacOS "rm" does not understand "--one-file-system" + rm -Rf $TESTDIR +fi if grep -R "panic(" internal ; then echo "Please use log.Panic instead of naked panic!" |