darcs

Issue 2563 Regression: network/issue2545_command-execution-via-ssh-uri.sh (Darcs1)

Title Regression: network/issue2545_command-execution-via-ssh-uri.sh (Darcs1)
Priority Status unknown
Milestone Resolved in
Superseder Nosy List bf
Assigned To
Topics

Created on 2018-02-10.17:10:06 by bf, last changed 2018-02-10.23:43:41 by bf.

Messages
msg19873 (view) Author: bf Date: 2018-02-10.17:10:05
Here is the detailed output:

network/issue2545_command-execution-via-ssh-uri.sh (Darcs1)
(PatienceDiff): [Failed]
| . sshlib                        # Load ssh helpers.
| + . sshlib
| if [ x${REMOTE_DIR} = x ]; then
|   REMOTE_DIR=/tmp/darcs-ssh-test
| fi
| ++ '[' x = x ']'
| ++ REMOTE_DIR=/tmp/darcs-ssh-test
| 
| if [ x"${USE_PUTTY}" != x ]; then
|   DARCS_SSH=plink
|   export DARCS_SSH
|   DARCS_SCP=pscp
|   export DARCS_SCP
|   DARCS_SFTP=psftp
|   export DARCS_SFTP
| fi
| ++ '[' x '!=' x ']'
| 
| if [ x"${USE_CONTROL_MASTER}" != x ]; then
|   DARCS_SSH_FLAGS="--ssh-cm"
|   export DARCS_SSH_FLAGS
| fi
| ++ '[' x '!=' x ']'
| 
| if [ x"${DARCS_SSH}" = x ]; then
|   SSH=ssh
| else
|   SSH=${DARCS_SSH}
| fi
| ++ '[' x = x ']'
| ++ SSH=ssh
| 
| if [ x${REMOTE} = x ]; then
|   REMOTE=$(whoami)@localhost
| fi
| ++ '[' x = x ']'
| whoami
| +++ whoami
| ++ REMOTE=ben@localhost
| 
| init_remote_repo() {
|     repodir="${1:-R}"
| 
|     ${SSH} ${REMOTE} \
|         "rm -rf '${REMOTE_DIR}' && mkdir '${REMOTE_DIR}' && \
|             cd '${REMOTE_DIR}' && darcs init --repo '$repodir'"
| }
| 
| # test if we can connect via ssh, otherwise skip test
| ${SSH} -x -o=NumberofPasswordPrompts=0 ${REMOTE} true || exit 200
| ++ ssh -x -o=NumberofPasswordPrompts=0 ben@localhost true
| 
| # vim: syntax=sh:
| 
| init_remote_repo R              # Create our test repos.
| + init_remote_repo R
| + repodir=R
| + ssh ben@localhost 'rm -rf '\''/tmp/darcs-ssh-test'\'' && mkdir
'\''/tmp/darcs-ssh-test'\'' &&             cd
'\''/tmp/darcs-ssh-test'\'' && darcs init --repo '\''R'\'''
| darcs init      --repo R        #
| + darcs init --repo R
| cd R
| + cd R
| 
| echo "text" > file              # Modify the working dir
| + echo text
| darcs record -lam "First Patch" # Record the changes
| + darcs record -lam 'First Patch'
| 
| check="\"${SSH}\" \"--\" \"${REMOTE}\" \"darcs apply --all --debug
--repodir '${REMOTE_DIR}/R'\""
| + check='"ssh" "--" "ben@localhost" "darcs apply --all --debug
--repodir '\''/tmp/darcs-ssh-test/R'\''"'
| darcs push -a --debug "${REMOTE}":"${REMOTE_DIR}"/R 2>&1 >/dev/null | \
|     grep -F "$check"
| + darcs push -a --debug ben@localhost:/tmp/darcs-ssh-test/R
| + grep -F '"ssh" "--" "ben@localhost" "darcs apply --all --debug
--repodir '\''/tmp/darcs-ssh-test/R'\''"'
msg19876 (view) Author: bf Date: 2018-02-10.23:43:40
Ok, this is not a regression but a problem in the test script or rather
in the tests/network/sshlib's function init_remote_repo: it creates a
darcs repo remotely via ssh which means that our test-local
.darcs/config is not in effect. This causes the remote repo to be a
darcs-2 repo even if we test for darcs-1, since the mechanism we select
darcs1/darcs2 is via the defaults file.
History
Date User Action Args
2018-02-10 17:10:06bfcreate
2018-02-10 23:43:41bfsetmessages: + msg19876