summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-04-18 12:43:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-04-18 12:43:36 -0400
commitc94f29e4bb0406e0adf7ce3f9865091bcfdfc690 (patch)
tree249451fca58eb6f315f19fe734f398c643a7b208
parent6b0ee95e24dc0ac2bda679f78d244cebb889fb2c (diff)
downloadbfs-c94f29e4bb0406e0adf7ce3f9865091bcfdfc690.tar.xz
tests: Don't fail -flags test if we can't set flags
-rwxr-xr-xtests.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests.sh b/tests.sh
index 34cb9f0..4d1ee57 100755
--- a/tests.sh
+++ b/tests.sh
@@ -2982,14 +2982,12 @@ function test_exclude_exclude() {
}
function test_flags() {
- if ! quiet invoke_bfs scratch -quit -flags offline; then
- return 0
- fi
+ quiet invoke_bfs scratch -quit -flags offline || return 0
rm -rf scratch/*
touch scratch/{foo,bar}
- quiet chflags offline scratch/bar
+ chflags offline scratch/bar || return 0
bfs_diff scratch -flags -offline,nohidden
}