Fixed possible issue with old file upgrade test when file is intended for remote cnx

This commit is contained in:
deajan 2016-12-23 21:30:38 +01:00
parent 9fd881647a
commit 1e0fb77cc8
1 changed files with 4 additions and 0 deletions

View File

@ -1299,6 +1299,10 @@ function test_UpgradeConfRun () {
./$OSYNC_UPGRADE "$CONF_DIR/$TMP_OLD_CONF" ./$OSYNC_UPGRADE "$CONF_DIR/$TMP_OLD_CONF"
assertEquals "Conf file upgrade" "0" $? assertEquals "Conf file upgrade" "0" $?
# Update remote conf files with SSH port
sed -i.tmp 's#ssh://.*@localhost:[0-9]*/${HOME}/osync-tests/target#ssh://'$REMOTE_USER'@localhost:'$SSH_PORT'/${HOME}/osync-tests/target#' "$CONF_DIR/$TMP_OLD_CONF"
./$OSYNC_EXECUTABLE "$CONF_DIR/$TMP_OLD_CONF" ./$OSYNC_EXECUTABLE "$CONF_DIR/$TMP_OLD_CONF"
assertEquals "Upgraded conf file execution test" "0" $? assertEquals "Upgraded conf file execution test" "0" $?