Skip to content

Commit 2af4f7d

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 daf8881 commit 2af4f7d

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
@@ -542,6 +542,17 @@ test_expect_success 'flux-jobs --format={id.f58},{id.f58plain},{id.hex},{id.doth
542542
test_cmp ids.XX.expected ids.XX.out
543543
'
544544

545+
# N.B. don't use test_cmp for match, there can be minor differences in spacing depending
546+
# on terminal and font. Just do a grep.
547+
test_expect_success 'flux-jobs --format={id.emoji},{id.emoji:>12W},{id.emoji:<12W} works' '
548+
flux jobs -ano "{id.emoji},{id.emoji:>12W},{id.emoji:<12W}" \
549+
> ids.emoji.out &&
550+
for id in $(cat all.ids); do
551+
idemoji=$(flux job id --to=emoji $id) &&
552+
grep ${idemoji} ids.emoji.out
553+
done
554+
'
555+
545556
test_expect_success 'flux-jobs --format={userid},{username} works' '
546557
flux jobs --no-header -a --format="{userid},{username}" > user.out &&
547558
id=`id -u` &&

0 commit comments

Comments
 (0)