Skip to content

Commit

Permalink
remove quarantine and permission changes in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shourya742 committed Dec 13, 2024
1 parent 69b5aac commit 164be11
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,8 @@ impl TemplateProvider {

unpack_tarball(&tarball_bytes, &temp_dir);

let bitcoind_binary = bitcoin_exe_home.join("bitcoind");

#[cfg(unix)]
{
use std::os::unix::fs::PermissionsExt;
let mut perms = std::fs::metadata(&bitcoind_binary).unwrap().permissions();
perms.set_mode(0o755);
std::fs::set_permissions(&bitcoind_binary, perms).unwrap();
}

if os == "macos" {
std::process::Command::new("xattr")
.arg("-d")
.arg("com.apple.quarantine")
.arg(&bitcoind_binary)
.output()
.expect("Failed to remove quarantine attribute");
let bitcoind_binary = bitcoin_exe_home.join("bitcoind");

std::process::Command::new("codesign")
.arg("--sign")
Expand Down

0 comments on commit 164be11

Please sign in to comment.