-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'test_upgrade_app-is-missing-from-the-test-result-matrix…
…-des-1468'
- Loading branch information
Showing
6 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
use super::TestWrapperFunction; | ||
use test_rpc::{meta::Os, mullvad_daemon::MullvadClientVersion}; | ||
|
||
#[derive(Clone)] | ||
pub struct TestMetadata { | ||
pub name: &'static str, | ||
pub command: &'static str, | ||
pub targets: &'static [Os], | ||
pub mullvad_client_version: MullvadClientVersion, | ||
pub func: TestWrapperFunction, | ||
pub priority: Option<i32>, | ||
} | ||
|
||
impl TestMetadata { | ||
pub fn should_run_on_os(&self, os: Os) -> bool { | ||
self.targets.is_empty() || self.targets.contains(&os) | ||
} | ||
} | ||
|
||
// Register our test metadata struct with inventory to allow submitting tests of this type. | ||
inventory::collect!(TestMetadata); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters