Skip to content

Commit f5b1924

Browse files
committed
testsuite: ensure ssh connector works with tcsh
Problem: Changes to the ssh connector have a habit of breaking users of tcsh, but there is no test in the testsuite that ensures tcsh at least basically works. Add a test to t1106-ssh-connector.t that checks ssh connector functionality with SHELL=/bin/tcsh.
1 parent c6a760c commit f5b1924

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t1106-ssh-connector.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ test_expect_success 'ssh:// with local sockdir works' '
2121
grep hostname=localhost basic.err &&
2222
grep cmd= basic.err | grep "flux relay $TEST_SOCKDIR"
2323
'
24+
test -x /bin/tcsh && test_set_prereq HAVE_TCSH
25+
test_expect_success HAVE_TCSH 'ssh:// with local sockdir and SHELL=tcsh works' '
26+
FLUX_URI=ssh://localhost${TEST_SOCKDIR} \
27+
FLUX_SSH=$TEST_SSH \
28+
SHELL=/bin/tcsh \
29+
flux getattr size 2>basic.err &&
30+
grep hostname=localhost basic.err &&
31+
grep cmd= basic.err | grep "flux relay $TEST_SOCKDIR"
32+
'
2433

2534
test_expect_success 'ssh:// with local sockdir and port works' '
2635
FLUX_URI=ssh://localhost:42${TEST_SOCKDIR} FLUX_SSH=$TEST_SSH \

0 commit comments

Comments
 (0)