Skip to content

Commit

Permalink
testsuite: disable hwloc reader tests
Browse files Browse the repository at this point in the history
Problem: resource.get-xml RPC is being deprecated in flux-core,
but the fluxion hwloc reader still depends on it.

Disable sharness tests that fail without this RPC as a stopgap
measure, so flux-core can proceed with removal.

Fixes #925
  • Loading branch information
garlick committed Apr 3, 2022
1 parent d411832 commit 48f1c9a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions t/t1016-nest-namespace.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ test_expect_success 'namespace: load test resources' '
load_test_resources ${excl_1N1B}
'

test_expect_success 'namespace: loading resource and qmanager modules works' '
test_expect_success HAVE_GETXML 'namespace: loading resource and qmanager modules works' '
load_resource load-allowlist=cluster,node,gpu,core policy=high &&
load_qmanager
'

test_expect_success 'namespace: gpu id remapping works with hwloc (pol=hi)' '
test_expect_success HAVE_GETXML 'namespace: gpu id remapping works with hwloc (pol=hi)' '
cat >nest.sh <<-EOF &&
#!/bin/sh
flux module load sched-fluxion-resource load-format=hwloc load-allowlist=cluster,node,gpu,core policy=high
Expand All @@ -44,7 +44,7 @@ EOF
diff out1.a.fin exp1
'

test_expect_success 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
test_expect_success HAVE_GETXML 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
export CUDA_VISIBLE_DEVICES="0,1,2,3" &&
jobid=$(flux mini batch --output=kvs -n1 -N1 -c22 -g2 ./nest.sh) &&
flux job wait-event -t10 ${jobid} release &&
Expand All @@ -53,16 +53,16 @@ test_expect_success 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
diff out1.b.fin exp1
'

test_expect_success 'namespace: removing resource and qmanager modules' '
test_expect_success HAVE_GETXML 'namespace: removing resource and qmanager modules' '
remove_resource
'

test_expect_success 'namespace: loading resource and qmanager modules works' '
test_expect_success HAVE_GETXML 'namespace: loading resource and qmanager modules works' '
load_resource load-format=hwloc load-allowlist=cluster,node,gpu,core policy=low &&
load_qmanager
'

test_expect_success 'namespace: gpu id remapping works with hwloc (pol=low)' '
test_expect_success HAVE_GETXML 'namespace: gpu id remapping works with hwloc (pol=low)' '
cat >exp2 <<-EOF &&
0
1
Expand All @@ -75,7 +75,7 @@ EOF
diff out2.a.fin exp2
'

test_expect_success 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
test_expect_success HAVE_GETXML 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
export CUDA_VISIBLE_DEVICES=-1 &&
jobid=$(flux mini batch --output=kvs -n1 -N1 -c22 -g2 ./nest.sh) &&
flux job wait-event -t10 ${jobid} release &&
Expand All @@ -84,7 +84,7 @@ test_expect_success 'namespace: parent CUDA_VISIBLE_DEVICES has no effect' '
diff out2.b.fin exp2
'

test_expect_success 'namespace: removing resource and qmanager modules' '
test_expect_success HAVE_GETXML 'namespace: removing resource and qmanager modules' '
remove_resource
'

Expand Down

0 comments on commit 48f1c9a

Please sign in to comment.