diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-07-07 00:16:54 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-07-07 00:16:54 -0400 |
commit | 4e9a4cd67d050cfa997d66067f0a08c702e0c8d7 (patch) | |
tree | e456ec88993cb8223666d7a638916c4a319b1517 /tests.sh | |
parent | 6cee5cbeaf8214f9b924bf79306672e1a52f18ef (diff) | |
download | bfs-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-x | tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" } |