Skip to content

Commit 7eaa1bd

Browse files
committed
testsuite: add test for stats and --clear RPCs
Problem: there is no sharness test to check that the stats and --clear RPCs work with the flux-core tooling. Add a test for each.
1 parent 09b3cac commit 7eaa1bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t4000-match-params.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ test_expect_success 'loading resource module with unknown policies is tolerated'
100100
load_resource policy=bar
101101
'
102102

103+
test_expect_success 'resource module stats and clear work' '
104+
unload_resource &&
105+
load_resource &&
106+
load_qmanager_sync &&
107+
flux module stats sched-fluxion-resource &&
108+
flux module stats --clear sched-fluxion-resource
109+
'
110+
103111
test_expect_success 'removing resource works' '
104112
remove_resource
105113
'

0 commit comments

Comments
 (0)