summaryrefslogtreecommitdiff
path: root/tests/script.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2023-02-24 22:14:58 +0000
committerStefan Eßer <se@FreeBSD.org>2023-02-24 22:14:58 +0000
commit61e1a12bb6c3bfdb0a4e499c88e8eaa2b548e427 (patch)
tree86bf7579a17d0deeccf9d4a705c36eed3b1e3273 /tests/script.sh
parentaaf1213c6f70af0b517f6aa13cd837d3468a7a0d (diff)
Diffstat (limited to 'tests/script.sh')
-rwxr-xr-xtests/script.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/script.sh b/tests/script.sh
index 460940a21388..438af17c79c4 100755
--- a/tests/script.sh
+++ b/tests/script.sh
@@ -194,7 +194,7 @@ else
# where GNU bc is wrong. See the development manual
# (manuals/development.md#script-tests) for more information.
printf 'Generating %s results...' "$f"
- printf '%s\n' "$halt" | "$d" "$s" | sed -n -f "$testdir/script.sed" > "$results"
+ printf '%s\n' "$halt" 2> /dev/null | "$d" "$s" | sed -n -f "$testdir/script.sed" > "$results"
printf 'done\n'
res="$results"
fi
@@ -206,11 +206,11 @@ printf 'Running %s script %s...' "$d" "$f"
# Yes this is poor timing, but it works.
if [ "$time_tests" -ne 0 ]; then
printf '\n'
- printf '%s\n' "$halt" | /usr/bin/time -p "$exe" "$@" $options "$s" > "$out"
+ printf '%s\n' "$halt" 2> /dev/null | /usr/bin/time -p "$exe" "$@" $options "$s" > "$out"
err="$?"
printf '\n'
else
- printf '%s\n' "$halt" | "$exe" "$@" $options "$s" > "$out"
+ printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" $options "$s" > "$out"
err="$?"
fi