diff options
| author | David Lönnhager <david.l@mullvad.net> | 2023-12-27 14:38:36 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-01-08 11:34:07 +0100 |
| commit | 857febc80eaff8f5efc4239b2c625fcfbee78999 (patch) | |
| tree | ce29bea94421884ff91021efa8b43d21088edf3c /test/test-manager/src/config.rs | |
| parent | aca939c260f718e3806a67b0a0703a33d4c8157f (diff) | |
| download | mullvadvpn-857febc80eaff8f5efc4239b2c625fcfbee78999.tar.xz mullvadvpn-857febc80eaff8f5efc4239b2c625fcfbee78999.zip | |
Add 'target_os' attribute to test macro
Diffstat (limited to 'test/test-manager/src/config.rs')
| -rw-r--r-- | test/test-manager/src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-manager/src/config.rs b/test/test-manager/src/config.rs index 7145dca8a5..0acbeb322e 100644 --- a/test/test-manager/src/config.rs +++ b/test/test-manager/src/config.rs @@ -195,6 +195,16 @@ pub enum OsType { Macos, } +impl From<OsType> for test_rpc::meta::Os { + fn from(ostype: OsType) -> Self { + match ostype { + OsType::Windows => Self::Windows, + OsType::Linux => Self::Linux, + OsType::Macos => Self::Macos, + } + } +} + #[derive(clap::ValueEnum, Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub enum PackageType { |
