Skip to content

Commit 750c75b

Browse files
chu11mergify[bot]
authored andcommitted
t: add test for flux module stats with no args
Problem: There are no tests for flux module stats without an argument. Add a test in t0003-module.t.
1 parent 16b2295 commit 750c75b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t0003-module.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ test_expect_success 'flux module stats --rusage --parse maxrss works' '
206206
test "$RSS" -gt 0
207207
'
208208

209+
test_expect_success 'flux module stats with no args is an error' '
210+
test_must_fail flux module stats 2> usage.out &&
211+
grep -i "usage" usage.out
212+
'
213+
209214
# try to hit some error cases
210215

211216
test_expect_success 'flux module with no arguments prints usage and fails' '

0 commit comments

Comments
 (0)