Skip to content

Commit dc3cea7

Browse files
grondomergify[bot]
authored andcommitted
testsuite: obey FLUX_TESTS_LOGFILE in t2315-resource-system.t
Problem: t2315-resource-system.t doesn't generate a logfile when FLUX_TESTS_LOGFILE is set because it doesn't use test_under_flux() and doesn't otherwise specifically check for this variable. Check for FLUX_TESTS_LOGFILE and add the appropriate --logfile option to sharness when it is set.
1 parent f9bbff2 commit dc3cea7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t2315-resource-system.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
test_description='Test resource module with system instance config'
44

5+
# Append --logfile option if FLUX_TESTS_LOGFILE is set in environment:
6+
test -n "$FLUX_TESTS_LOGFILE" && set -- "$@" --logfile
57
. `dirname $0`/sharness.sh
68

79
if which hwloc-bind > /dev/null; then

0 commit comments

Comments
 (0)