summaryrefslogtreecommitdiff
path: root/tests/script.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-09-19 12:41:20 +0000
committerStefan Eßer <se@FreeBSD.org>2021-09-19 12:41:20 +0000
commita60ef1802a36f2f2a5611564191440ea1c1e2f17 (patch)
tree8ec2045a9bf751b60e0615ae80a9d667535e3db5 /tests/script.sh
parent2f57ecae4b98e76e5d675563785a7e6c59c868c4 (diff)
vendor/bc: update to upstream version 5.0.2vendor/bc/5.0.2
Diffstat (limited to 'tests/script.sh')
-rwxr-xr-xtests/script.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/script.sh b/tests/script.sh
index f8fdd67ee137..162437af8f22 100755
--- a/tests/script.sh
+++ b/tests/script.sh
@@ -35,6 +35,8 @@ testdir=$(dirname "${script}")
. "$testdir/../scripts/functions.sh"
+outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
+
# Command-line processing.
if [ "$#" -lt 2 ]; then
printf 'usage: %s dir script [run_extra_tests] [run_stack_tests] [generate_tests] [time_tests] [exec args...]\n' "$script"
@@ -126,7 +128,7 @@ if [ "$run_stack_tests" -eq 0 ]; then
fi
-out="$testdir/${d}_outputs/${name}_script_results.txt"
+out="$outputdir/${d}_outputs/${name}_script_results.txt"
outdir=$(dirname "$out")
# Make sure the directory exists.