From ddc845c0494e241e56f5c4e8fca033201ab70aa4 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sun, 10 Aug 2025 00:32:54 +0400 Subject: [PATCH] test: change executable discovery --- tests/common/mod.rs | 16 ++-------------- tests/integration_test.rs | 3 --- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 282f482..5a55ee7 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -674,20 +674,8 @@ impl BundlerTestHelper { fs::set_permissions(executable_path, perms)?; } - // On Windows, ensure we're using the full path and handle potential issues - let mut cmd = if cfg!(windows) { - // Use the full canonical path on Windows to avoid "program not found" issues - let canonical_path = executable_path.canonicalize().with_context(|| { - format!("Failed to canonicalize path: {}", executable_path.display()) - })?; - println!( - "Windows: Using canonical path: {}", - canonical_path.display() - ); - Command::new(canonical_path) - } else { - Command::new(executable_path) - }; + // Build command to run the executable. + let mut cmd = Command::new(executable_path); cmd.args(args); diff --git a/tests/integration_test.rs b/tests/integration_test.rs index b536bb2..87ade42 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -1201,9 +1201,6 @@ async fn test_bundle_simple_project() { // Test that the bundle exists let bundle_path = temp_dir.path().join("test-bundle"); assert!(bundle_path.exists(), "Bundle file not created"); - - // Note: Testing execution would require extracting and running the bundle, - // which is complex in a test environment } #[tokio::test(flavor = "multi_thread")]