Skip to content

Commit

Permalink
testsuite: ensure flux-top(1) doesn't display FLUX_JOBID_ANY title
Browse files Browse the repository at this point in the history
Problem: No tests in the testsuite ensure that flux-top(1) does not
display the F58 representation of FLUX_JOBID_ANY as the window title
when connected to an instance that is not a Flux job.

Add a simple test that verifies FLUX_JOBID_ANY does not appear as
the flux-top(1) title.
  • Loading branch information
grondo committed Aug 16, 2023
1 parent a84b8b0 commit c80a8a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t2801-top-cmd.t
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ test_expect_success 'flux-top summary shows no jobs initially' '
grep "0 running" nojobs.out &&
grep "0 failed" nojobs.out
'
# Note: jpXCZedGfVQ is the base58 representation of FLUX_JOBID_ANY. We
# grep for this value without f or ƒ in case build environment influences
# presence of one of the other.
#
test_expect_success 'flux-top does not display FLUX_JOBID_ANY jobid in title' '
test_must_fail grep jpXCZedGfVQ nojobs.out
'
test_expect_success 'run a test job to completion' '
flux submit --wait -n1 flux start /bin/true >jobid &&
job_list_wait_state $(cat jobid) INACTIVE
Expand Down

0 comments on commit c80a8a2

Please sign in to comment.