When BUP_TEST_LOCAL_SSH is set to a host, attempt to run some of the
tests via ssh connections to that address. Note that the host must
refer to the host containing the current directory (the current source
tree) and that tree's ./bup must be in the default ssh path.
lib/bup/client.py | 3 ---
test/ext/test-save-restore | 5 +++++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/bup/client.py b/lib/bup/client.py
index 1b2b0d2b..1485d9c1 100644
--- a/lib/bup/client.py
+++ b/lib/bup/client.py
@@ -208,9 +208,6 @@ class Client:
except OSError as e:
raise ClientError('connect: %s' % e) from e
try:
- assert not url.host, url
- assert not url.user, url
- assert url.port is None, url
self.conn = Conn(self._proc.stdout, self._proc.stdin)
except:
self._proc.terminate()
diff --git a/test/ext/test-save-restore b/test/ext/test-save-restore
index 15f3c9d8..a47f8284 100755
--- a/test/ext/test-save-restore
+++ b/test/ext/test-save-restore
@@ -21,6 +21,11 @@ validate-local-and-remote-restore()
force-delete "$dest"
WVPASS bup restore -r "-:$BUP_DIR" -C "$dest" "$src"
WVPASS "$top/dev/compare-trees" "$cmp_src" "$cmp_dest"
+ if test "${BUP_TEST_LOCAL_SSH:-}"; then
+ force-delete "$dest"
+ WVPASS bup restore -r "$BUP_TEST_LOCAL_SSH:$BUP_DIR" -C "$dest" "$src"
+ WVPASS "$top/dev/compare-trees" "$cmp_src" "$cmp_dest"
+ fi
}
--
2.47.3