Skip to content

Commit e4f18f8

Browse files
grondomergify[bot]
authored andcommitted
testsuite: add coverage for flux-overlay status --color
Problem: There is no test coverage of the flux-overlay status --color option. Add a test that ensures expected failure and success of various arguments to this option.
1 parent 6936c5f commit e4f18f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t3303-system-healthcheck.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ test_expect_success 'flux overlay status --highlight expected failures' '
9696
test_must_fail flux overlay status --highlight=fake16
9797
'
9898

99+
test_expect_success 'flux overlay status --color option works' '
100+
test_must_fail flux overlay status --color=foo &&
101+
flux overlay status --color=never --highlight=0 | grep "<<0" &&
102+
flux overlay status --color=auto --highlight=0 | grep "<<0" &&
103+
flux overlay status --color --highlight=0 | grep "\["
104+
'
105+
99106
test_expect_success 'stop broker 3 with children 7,8' '
100107
$startctl kill 3 15
101108
'

0 commit comments

Comments
 (0)