Skip to content

Commit

Permalink
testsuite: test id.emoji in flux-jobs
Browse files Browse the repository at this point in the history
Problem: There is no coveragage for id.emoji and the W presentation
type.

Add some coverage in t2800-jobs-cmd.t.
  • Loading branch information
chu11 committed May 17, 2023
1 parent dba7057 commit 444ee92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t2800-jobs-cmd.t
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,17 @@ test_expect_success 'flux-jobs --format={id.dec/f58/hex/kvs/dothex/words} works'
test_cmp ids.XX.expected ids.XX.out
'

# N.B. don't use test_cmp for match, there can be minor differences in spacing depending
# on terminal and font. Just do a grep.
test_expect_success 'flux-jobs --format={id.emoji},{id.emoji:>12W},{id.emoji:<12W} works' '
flux jobs -ano "{id.emoji},{id.emoji:>12W},{id.emoji:<12W}" \
> ids.emoji.out &&
for id in $(cat all.ids); do
idemoji=$(flux job id --to=emoji $id) &&
grep ${idemoji} ids.emoji.out
done
'

test_expect_success 'flux-jobs --format={userid},{username} works' '
flux jobs --no-header -a --format="{userid},{username}" > user.out &&
id=`id -u` &&
Expand Down

0 comments on commit 444ee92

Please sign in to comment.