Skip to content

Commit d7d15e7

Browse files
committed
testsuite: update flux exec error message checks
Problem: flux-exec may not output more detailed error messages about underlying issues, but tests do not check for them. Update tests in t0005-exec.t to check for these extra details.
1 parent b93468c commit d7d15e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/t0005-exec.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,14 @@ test_expect_success 'flux exec exits with code 127 for file not found' '
121121

122122
test_expect_success 'flux exec outputs appropriate error message for file not found' '
123123
test_expect_code 127 flux exec -n ./nosuchprocess 2> exec.stderr &&
124-
grep "No such file or directory" exec.stderr
124+
grep "error launching process" exec.stderr &&
125+
grep "No such file or directory" exec.stderr
125126
'
126127

127128
test_expect_success 'flux exec exits with code 126 for non executable' '
128-
test_expect_code 126 flux exec -n /dev/null
129+
test_expect_code 126 flux exec -n /dev/null 2> exec.stderr2 &&
130+
grep "error launching process" exec.stderr2 &&
131+
grep "Permission denied" exec.stderr2
129132
'
130133

131134
test_expect_success 'flux exec exits with code 68 (EX_NOHOST) for rank not found' '

0 commit comments

Comments
 (0)