diff --git a/t/t2800-jobs-cmd.t b/t/t2800-jobs-cmd.t index be2f0afcb37a..4d0e08afdf69 100755 --- a/t/t2800-jobs-cmd.t +++ b/t/t2800-jobs-cmd.t @@ -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` &&