upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-19 07:43:09 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-19 07:43:09 +0100
commit6b46ad9809b42d355c883ff2c75f8ac75d4bd989 (patch)
tree3b98cae3a279f763237b15e0259dc2cf0e8ff451
parentde89a7ec528fa57702199f94e63b42f827bd2fdf (diff)
test(remote): fix first test run
if binaries in git-exec-path are copied to tmp-git-exec-path if the dir doesnt exist some enties fail to copy which was causing the first test to hang
-rw-r--r--test_utils/src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs
index 6c177bc..84ae8a9 100644
--- a/test_utils/src/lib.rs
+++ b/test_utils/src/lib.rs
@@ -1021,9 +1021,11 @@ where
1021 .trim() 1021 .trim()
1022 .to_string(), 1022 .to_string(),
1023 ); 1023 );
1024 for entry in std::fs::read_dir(src)? { 1024 for entry in (std::fs::read_dir(src)?).flatten() {
1025 let src_path = entry?.path(); 1025 let src_path = entry.path();
1026 std::fs::copy(&src_path, &git_exec_dir.join(src_path.file_name().unwrap()))?; 1026 if let Some(name) = src_path.file_name() {
1027 let _ = std::fs::copy(&src_path, &git_exec_dir.join(name));
1028 }
1027 } 1029 }
1028 } 1030 }
1029 std::fs::copy( 1031 std::fs::copy(