From e885bc6dff1923e1db5fa2e8624574386bf858f1 Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Tue, 27 Feb 2024 15:54:49 -0300 Subject: [PATCH] feat(webdriver): support geckodriver for `linux-aarch64` --- src/test/webdriver/geckodriver.rs | 2 ++ tests/all/webdriver.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/test/webdriver/geckodriver.rs b/src/test/webdriver/geckodriver.rs index 8342d49..80d6964 100644 --- a/src/test/webdriver/geckodriver.rs +++ b/src/test/webdriver/geckodriver.rs @@ -40,6 +40,8 @@ pub fn install_geckodriver(cache: &Cache, installation_allowed: bool) -> Result< ("linux32", "tar.gz") } else if target::LINUX && target::x86_64 { ("linux64", "tar.gz") + } else if target::LINUX && target::aarch64 { + ("linux-aarch64", "tar.gz") } else if target::MACOS { ("macos", "tar.gz") } else if target::WINDOWS && target::x86 { diff --git a/tests/all/webdriver.rs b/tests/all/webdriver.rs index 3cd93c9..bd6017e 100644 --- a/tests/all/webdriver.rs +++ b/tests/all/webdriver.rs @@ -19,6 +19,7 @@ fn can_install_chromedriver() { #[cfg(any( all(target_os = "linux", target_arch = "x86"), all(target_os = "linux", target_arch = "x86_64"), + all(target_os = "linux", target_arch = "aarch64"), all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "aarch64"), all(target_os = "windows", target_arch = "x86"),