diff --git a/duckscript_sdk/src/sdk/std/env/os_release/mod_test.rs b/duckscript_sdk/src/sdk/std/env/os_release/mod_test.rs index 5f11457..32c40fc 100644 --- a/duckscript_sdk/src/sdk/std/env/os_release/mod_test.rs +++ b/duckscript_sdk/src/sdk/std/env/os_release/mod_test.rs @@ -7,7 +7,14 @@ fn common_functions() { test::test_common_command_functions(create("")); } +#[cfg(windows)] #[test] +fn run_windows() { + test::run_script_and_error(vec![create("")], "out = os_release", "out"); +} + +#[test] +#[cfg(not(windows))] fn run_valid() { test::run_script_and_validate( vec![create("")], diff --git a/duckscript_sdk/src/sdk/std/env/os_version/mod_test.rs b/duckscript_sdk/src/sdk/std/env/os_version/mod_test.rs index f80dac6..b556bc3 100644 --- a/duckscript_sdk/src/sdk/std/env/os_version/mod_test.rs +++ b/duckscript_sdk/src/sdk/std/env/os_version/mod_test.rs @@ -7,7 +7,14 @@ fn common_functions() { test::test_common_command_functions(create("")); } +#[cfg(windows)] #[test] +fn run_windows() { + test::run_script_and_error(vec![create("")], "out = os_version", "out"); +} + +#[test] +#[cfg(not(windows))] fn run_valid() { test::run_script_and_validate( vec![create("")],