Skip to content

Commit 7d0f76c

Browse files
committed
testsuite: ensure HWLOC_COMPONENTS is unset with -o hwloc.xmlfile
Problem: No test in the testsuite ensures that HWLOC_COMPONENTS is unset with the hwloc.xmlfile shell option. Add a test to t2619-job-shell-hwloc.t that ensures this environment variable is unset with -o hwloc.xmlfile.
1 parent 98082de commit 7d0f76c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t2619-job-shell-hwloc.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ test_expect_success 'shell: HWLOC_XMLFILE is not set for normal jobs' '
1414
test_expect_success 'shell: -o hwloc.xmlfile sets HWLOC_XMLFILE' '
1515
flux run -o hwloc.xmlfile printenv HWLOC_XMLFILE
1616
'
17+
test_expect_success 'shell: -o hwloc.xmlfile unsets HWLOC_COMPONENTS' '
18+
test_must_fail flux run --env=HWLOC_COMPONENTS=x86 -o hwloc.xmlfile \
19+
printenv HWLOC_COMPONENTS
20+
'
1721
command -v hwloc-info >/dev/null && test_set_prereq HWLOC_INFO
1822
test_expect_success HWLOC_INFO 'shell: -o hwloc.xmlfile HWLOC_XMLFILE is valid' '
1923
flux run -o hwloc.xmlfile sh -c "hwloc-info --input \$HWLOC_XMLFILE"

0 commit comments

Comments
 (0)