summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-04-24 23:36:52 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-04-24 23:36:52 -0400
commit3857f41551b2ad3e5288828163afb6f67c7cc6f1 (patch)
tree9ddffddbb20c759f93c9cff51870a367f6b9cfa2 /tests.sh
parent9dfce9a8c392838f7aa21886de6ef3d16e459e2f (diff)
downloadbfs-3857f41551b2ad3e5288828163afb6f67c7cc6f1.tar.xz
tests: Redirect stdin from /dev/null
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index c64eacc..da011d9 100755
--- a/tests.sh
+++ b/tests.sh
@@ -815,6 +815,9 @@ function bfs_sort() {
awk -F/ '{ print NF - 1 " " $0 }' | sort -n | cut -d' ' -f2-
}
+# Close stdin so bfs doesn't think we're interactive
+exec </dev/null
+
if [ "$VERBOSE" ]; then
# dup stdout for verbose logging even when redirected
exec 3>&1