osmith submitted this change.
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(-)
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" "root@127.0.0.1:/repo-install-test"
+ qemu_scp -r "$TEST_DIR"/* "root@127.0.0.1:/repo-install-test"
TIMEOUT="1h" qemu_ssh sh -ex /repo-install-test/run-inside-env.sh
}
To view, visit change 34856. To unsubscribe, or for help writing mail filters, visit settings.