Skip to content

Commit 19462df

Browse files
committed
testsuite: test id.emoji in flux-jobs
Problem: There is no coveragage for id.emoji and the W presentation type. Add some coverage in t2800-jobs-cmd.t.
1 parent 60b3cb4 commit 19462df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t2800-jobs-cmd.t

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,17 @@ test_expect_success 'flux-jobs --format={id.dec/f58/hex/kvs/dothex/words} works'
485485
test_cmp ids.XX.expected ids.XX.out
486486
'
487487

488+
# N.B. don't use test_cmp for match, there can be minor differences in spacing depending
489+
# on terminal and font. Just do a grep.
490+
test_expect_success 'flux-jobs --format={id.emoji},{id.emoji:>12W},{id.emoji:<12W} works' '
491+
flux jobs -ano "{id.emoji},{id.emoji:>12W},{id.emoji:<12W}" \
492+
> ids.emoji.out &&
493+
for id in $(cat all.ids); do
494+
idemoji=$(flux job id --to=emoji $id) &&
495+
grep ${idemoji} ids.emoji.out
496+
done
497+
'
498+
488499
test_expect_success 'flux-jobs --format={userid},{username} works' '
489500
flux jobs --no-header -a --format="{userid},{username}" > user.out &&
490501
id=`id -u` &&

0 commit comments

Comments
 (0)