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


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

scripts/repo-install-test: fix sftp compat, part 2

Copy files inside repo-install-test, instead of copying the directory
again. Otherwise it creates a /repo-install-test/repo-install-test/ path
inside qemu and then fails to run the script inside the directory:

Fix for:
  sh: 0: cannot open /repo-install-test/run-inside-env.sh: No such file

Fixes: a7791217 ("scripts/repo-install-test: fix sftp compat")
Change-Id: I04d8c0e0fd31ee5d2a0912300dc93f5339bbef11
---
M scripts/repo-install-test.sh
1 file changed, 18 insertions(+), 1 deletion(-)



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

diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh
index 98f0176..7bef5bf 100755
--- a/scripts/repo-install-test.sh
+++ b/scripts/repo-install-test.sh
@@ -154,7 +154,7 @@

        qemu_ssh rm -rf /repo-install-test/
        qemu_ssh mkdir /repo-install-test
-       qemu_scp -r "$TEST_DIR" "[email protected]:/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/+/34856?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: I04d8c0e0fd31ee5d2a0912300dc93f5339bbef11
Gerrit-Change-Number: 34856
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to