Skip to content

Commit

Permalink
Temporarily skip CWL test when running on M1 Mac #9
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaccha committed Jul 29, 2024
1 parent dac7ce9 commit 3db43cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,10 @@ pub fn check_and_create_cache_dir() -> io::Result<()> {

Ok(())
}

// whether the current environment is M1 Mac
pub fn is_running_on_m1_mac() -> bool {
let os = std::env::consts::OS;
let arch = std::env::consts::ARCH;
os == "macos" && arch == "aarch64"
}
8 changes: 7 additions & 1 deletion tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod common;
use std::fs;
use std::path::Path;

use common::{calculate_checksum, check_and_create_cache_dir, tataki};
use common::{calculate_checksum, check_and_create_cache_dir, is_running_on_m1_mac, tataki};

/*
test cases:
Expand Down Expand Up @@ -240,6 +240,12 @@ fn can_be_verbose() {
#[test]
// 9. -c cwl.conf
fn can_run_cwl() {
// TEMPORARY: skip this test on M1 Mac due (issue #9)
// This will be removed when tataki supports M1 Mac.
if is_running_on_m1_mac() {
return;
}

check_and_create_cache_dir().expect("Failed to create the cache directory");

let out = tataki(
Expand Down

0 comments on commit 3db43cd

Please sign in to comment.