Skip to content

Commit ca0deb3

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 b23e675 commit ca0deb3

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

557+
# N.B. don't use test_cmp for match, there can be minor differences in spacing depending
558+
# on terminal and font. Just do a grep.
559+
test_expect_success 'flux-jobs --format={id.emoji},{id.emoji:>12W},{id.emoji:<12W} works' '
560+
flux jobs -ano "{id.emoji},{id.emoji:>12W},{id.emoji:<12W}" \
561+
> ids.emoji.out &&
562+
for id in $(cat all.ids); do
563+
idemoji=$(flux job id --to=emoji $id) &&
564+
grep ${idemoji} ids.emoji.out
565+
done
566+
'
567+
557568
test_expect_success 'flux-jobs --format={userid},{username} works' '
558569
flux jobs --no-header -a --format="{userid},{username}" > user.out &&
559570
id=`id -u` &&

0 commit comments

Comments
 (0)