Skip to content

Commit

Permalink
testsuite: verify error message on duplicate jobtap plugin load
Browse files Browse the repository at this point in the history
Problem: The test for expected failure when loading a duplication
jobtap plugin does not validate that the correct error message
is emitted.

Validate the error message in addition to ensuring that the plugin
load fails.
  • Loading branch information
grondo committed Nov 7, 2023
1 parent 47ee4a1 commit 16a186f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/t2212-job-manager-plugins.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ test_expect_success 'job-manager: multiple plugins can be loaded' '
'
test_expect_success 'job-manager: loading duplicate plugins fails' '
flux jobtap load ${PLUGINPATH}/args.so &&
test_must_fail flux jobtap load ${PLUGINPATH}/args.so &&
test_must_fail flux jobtap load ${PLUGINPATH}/args.so >dup.log 2>&1 &&
test_debug "cat dup.log" &&
grep "already loaded" dup.log &&
flux jobtap remove args.so
'
test_expect_success 'job-manager: query of plugin works' '
Expand Down

0 comments on commit 16a186f

Please sign in to comment.