Skip to content

Commit ca72fc2

Browse files
grondomergify[bot]
authored andcommitted
testsuite: test shell inheritance of FLUX_F58_FORCE_ASCII
Problem: The testsuite does not test that FLUX_F58_FORCE_ASCII set for a job is inherited by the shell so that output files etc. use ascii-encoded F58. Add a test that verifies inheritance of FLUX_F58_FORCE_ASCII from the job environment by the job shell.
1 parent 459f3bd commit ca72fc2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t2602-job-shell.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,13 @@ test_expect_success 'job-shell: -o nosetpgrp works' '
377377
flux mini run -n2 -o nosetpgrp \
378378
flux python -c "import os,sys; sys.exit(os.getpid() == os.getpgrp())"
379379
'
380+
381+
# Check that job shell inherits FLUX_F58_FORCE_ASCII.
382+
# If not, then output filename will not match jobid returned by submit,
383+
# since one will be in UTF-8 and the other in ascii.
384+
test_expect_success 'job-shell: shell inherits FLUX_F58_FORCE_ASCII from job' '
385+
FLUX_F58_FORCE_ASCII=t \
386+
id=$(flux mini submit --wait --output={{id}}.out hostname) &&
387+
test -f ${id}.out
388+
'
380389
test_done

0 commit comments

Comments
 (0)