summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src/vm
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim@hulthe.net>2024-07-05 16:25:03 +0200
committerJoakim Hulthe <joakim@hulthe.net>2024-07-16 15:38:54 +0200
commit28a3776b3a7a35c4e1f964e9dcb9c4698afd7a68 (patch)
treeaf1603682af4658fa85962a804d7bcd289b64ffc /test/test-manager/src/vm
parent49ff1b46da6b79df5ed429fa23d40402069662b0 (diff)
downloadmullvadvpn-28a3776b3a7a35c4e1f964e9dcb9c4698afd7a68.tar.xz
mullvadvpn-28a3776b3a7a35c4e1f964e9dcb9c4698afd7a68.zip
Account for CARGO_TARGET_DIR in e2e test-manager
Diffstat (limited to 'test/test-manager/src/vm')
-rw-r--r--test/test-manager/src/vm/provision.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/test-manager/src/vm/provision.rs b/test/test-manager/src/vm/provision.rs
index aa8949d54f..dfdfd30a39 100644
--- a/test/test-manager/src/vm/provision.rs
+++ b/test/test-manager/src/vm/provision.rs
@@ -24,7 +24,7 @@ pub async fn provision(
ssh(
instance,
config.os_type,
- config.get_runner_dir(),
+ &config.get_runner_dir(),
app_manifest,
user,
password,
@@ -182,8 +182,12 @@ fn ssh_send_file_path(session: &Session, source: &Path, dest_dir: &Path) -> Resu
dest.display(),
);
- let mut file = File::open(source).context("Failed to open file")?;
- let file_len = file.metadata().context("Failed to get file size")?.len();
+ let mut file =
+ File::open(source).with_context(|| format!("Failed to open file at {source:?}"))?;
+ let file_len = file
+ .metadata()
+ .with_context(|| format!("Failed to get file size of {source:?}"))?
+ .len();
ssh_send_file(session, &mut file, file_len, &dest)
}