Skip to content

Commit adc143d

Browse files
authored
Merge pull request #4550 from grondo/t2315-fix
testsuite: fix spurious resource norestrict test failures on some version of hwloc
2 parents f9bbff2 + b1bdece commit adc143d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t2315-resource-system.t

Lines changed: 3 additions & 1 deletion
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
@@ -134,7 +136,7 @@ test_expect_success HAVE_JQ,MULTICORE 'resource norestrict option works' '
134136
hwloc-bind core:0 flux start -s1 \
135137
-o,--config-path=$(pwd)/${name},-Slog-filename=${name}/logfile \
136138
flux mini run -N1 --exclusive \
137-
sh -c "hwloc-bind --get | hwloc-calc --number-of core" \
139+
sh -c "hwloc-bind --get | hwloc-calc --number-of core | tail -n1" \
138140
>${name}/ncores &&
139141
test_debug "cat ${name}/ncores" &&
140142
test $(cat ${name}/ncores) = $NCORES

0 commit comments

Comments
 (0)