summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-07-07 00:16:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-07-07 00:16:54 -0400
commit4e9a4cd67d050cfa997d66067f0a08c702e0c8d7 (patch)
treee456ec88993cb8223666d7a638916c4a319b1517 /tests.sh
parent6cee5cbeaf8214f9b924bf79306672e1a52f18ef (diff)
downloadbfs-4e9a4cd67d050cfa997d66067f0a08c702e0c8d7.tar.xz
tests: Use -maxdepth 0 instead of | head -n1
This avoids the potential for "broken pipe" errors observed on some systems, e.g. http://build.alpinelinux.org/buildlogs/build-edge-s390x/testing/bfs/bfs-1.2.2-r0.log
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 9302cfc..1045e51 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1342,7 +1342,7 @@ function test_printf_w() {
}
function test_fstype() {
- fstype="$(invoke_bfs -printf '%F\n' | head -n1)"
+ fstype="$(invoke_bfs basic -maxdepth 0 -printf '%F\n')"
bfs_diff basic -fstype "$fstype"
}