Skip to content

Commit 007daff

Browse files
committed
[rust] Fix exec iexplorer test (only available in Windows)
1 parent 5942257 commit 007daff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

rust/tests/exec_driver_tests.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717

1818
use crate::common::{assert_driver_and_browser, exec_driver};
19+
use std::env::consts::OS;
1920

2021
use assert_cmd::Command;
2122
use rstest::rstest;
@@ -34,7 +35,9 @@ fn exec_driver_test(#[case] browser_name: String, #[case] driver_name: String) {
3435
.success()
3536
.code(0);
3637

37-
assert_driver_and_browser(&mut cmd);
38-
let output = exec_driver(&mut cmd);
39-
assert!(output.contains(&driver_name));
38+
if OS.eq("macos") {
39+
assert_driver_and_browser(&mut cmd);
40+
let output = exec_driver(&mut cmd);
41+
assert!(output.contains(&driver_name));
42+
}
4043
}

0 commit comments

Comments
 (0)