diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-14 00:15:48 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-14 00:15:48 -0500 |
commit | 14065fe78c133bc49e46557a8cfdec7ed6b618bc (patch) | |
tree | 2e597f86bc770023983b184265f7e7f55b80e131 | |
parent | a8f7b6dbd743bc224e2a8616993c373e82072956 (diff) | |
download | bfs-14065fe78c133bc49e46557a8cfdec7ed6b618bc.tar.xz |
tests: Don't assume BSD find has the "implicit ."
Also, FreeBSD find rejects -L -delete, so don't test it under --bsd.
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -299,7 +299,6 @@ bsd_tests=( # Primaries test_delete - test_L_delete test_depth_maxdepth_1 test_depth_maxdepth_2 @@ -1387,7 +1386,7 @@ function test_delete() { touchp scratch/foo/bar/baz # Don't try to delete '.' - (cd scratch && invoke_bfs -delete) + (cd scratch && invoke_bfs . -delete) bfs_diff scratch } @@ -1408,7 +1407,7 @@ function test_rm() { rm -rf scratch/* touchp scratch/foo/bar/baz - (cd scratch && invoke_bfs -rm) + (cd scratch && invoke_bfs . -rm) bfs_diff scratch } |