osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/34837?usp=email )


Change subject: scripts/repo-install-test: fix sftp compat
......................................................................

scripts/repo-install-test: fix sftp compat

When running scp, Debian 12 uses the SFTP protocol by default instead of
the legacy SCP protocol. For some reason, this means it doesn't create
the /repo-install-test directory inside QEMU:

  + … scp … -r scripts/repo-install-test [email protected]:/repo-install-test
  Warning: Permanently added '[127.0.0.1]:22793' (ED25519) to the list of known 
hosts.
  scp: realpath /repo-install-test: No such file
  scp: upload "/repo-install-test": path canonicalization failed
  scp: failed to upload directory scripts/repo-install-test to 
/repo-install-test

Changing to the legacy protocol with "scp -O" would make it work again,
but instead of doing that add the mkdir so it works with the new
protocol too.

Change-Id: I740affad2ea794094c8faa89a89bcad094e0075d
---
M scripts/repo-install-test.sh
1 file changed, 24 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/37/34837/1

diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh
index 246d5e5..98f0176 100755
--- a/scripts/repo-install-test.sh
+++ b/scripts/repo-install-test.sh
@@ -153,6 +153,7 @@
        EOF

        qemu_ssh rm -rf /repo-install-test/
+       qemu_ssh mkdir /repo-install-test
        qemu_scp -r "$TEST_DIR" "[email protected]:/repo-install-test"

        TIMEOUT="1h" qemu_ssh sh -ex /repo-install-test/run-inside-env.sh

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/34837?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I740affad2ea794094c8faa89a89bcad094e0075d
Gerrit-Change-Number: 34837
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to