Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

test(ci): gate platform-specific imports and e2e upgrade test for Unix

Samir Hossains8f793db1f156
diff --git a/tests/real_acceptance.rs b/tests/real_acceptance.rs
index a56b2bb..4290a0a 100644
--- a/tests/real_acceptance.rs
+++ b/tests/real_acceptance.rs
@@ -1,14 +1,16 @@
use moviebox_tui::models::NotificationKind;
use moviebox_tui::tui::action::Action;
use moviebox_tui::tui::app::App;
+#[cfg(unix)]
+use moviebox_tui::updater::apply::is_homebrew_managed;
use moviebox_tui::updater::apply::{
InstallationEnvironment, SelfUpdateOutcome, apply_staged_binary, detect_environment,
- is_homebrew_managed,
};
use moviebox_tui::updater::download::{download_file, download_text};
use moviebox_tui::updater::extract::extract_binary;
use moviebox_tui::updater::verify::{parse_sha256sums, verify_checksum};
use std::io::Write;
+#[cfg(target_os = "macos")]
use std::process::Command;
#[tokio::test]
diff --git a/tests/version_upgrade_e2e.rs b/tests/version_upgrade_e2e.rs
index 7c04d09..849dae6 100644
--- a/tests/version_upgrade_e2e.rs
+++ b/tests/version_upgrade_e2e.rs
@@ -1,3 +1,5 @@
+#![cfg(unix)]
+
use std::process::Command;
use std::sync::Arc;
use tokio::io::{AsyncReadExt, AsyncWriteExt};