Skip to content

Commit

Permalink
testsuite: add test for -HL behavior in flux-job(1)
Browse files Browse the repository at this point in the history
Problem: The `flux job wait-event` and `eventlog` tests do not ensure
that the options `-HL` enable human timestamps but also force color.

Add this option usage to existing tests that check that color is
force-enabled.
  • Loading branch information
grondo committed Feb 6, 2025
1 parent 93c9bd1 commit 3a175c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t2230-job-info-lookup.t
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ test_expect_success 'flux job eventlog/wait-event reject invalid --color' '
test_must_fail flux job eventlog --color=foo $jobid &&
test_must_fail flux job wait-event --color=foo $jobid
'
for opt in "-L" "-Lalways" "--color" "--color=always"; do
for opt in "-HL" "-L" "-Lalways" "--color" "--color=always"; do
test_expect_success "flux job eventlog $opt forces color on" '
name=notty${opt##--color=} &&
outfile=color-${name:-default}.out &&
Expand Down

0 comments on commit 3a175c2

Please sign in to comment.