Skip to content

Commit 24f9e6c

Browse files
committed
testsuite: handle FLUX_TESTS_LOGFILE in t9000
Problem: t9000-system.t doesn't handle FLUX_TESTS_LOGFILE so logs are not shown on failure in CI. Add handling for that environment variable. Co-authoried-by: Mark A. Grondona <[email protected]>
1 parent 0a5d88a commit 24f9e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t9000-system.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if test -n "$FLUX_ENABLE_SYSTEM_TESTS"; then
1313
FLUX_TEST_INSTALLED_PATH=${FLUX_TEST_INSTALLED_PATH:-/usr/bin}
1414
fi
1515
fi
16+
# Append --logfile option if FLUX_TESTS_LOGFILE is set in environment:
17+
test -n "$FLUX_TESTS_LOGFILE" && set -- "$@" --logfile
1618
. `dirname $0`/sharness.sh
1719

1820
# Do not run system tests by default unless FLUX_ENABLE_SYSTEM_TESTS

0 commit comments

Comments
 (0)