Don't run bookmarks tests on macos

This commit is contained in:
ChristianVisintin
2021-01-16 17:37:03 +01:00
parent cb20589b01
commit ac02928e69
2 changed files with 9 additions and 1 deletions

View File

@@ -376,6 +376,7 @@ mod tests {
use std::time::Duration;
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_new() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -408,6 +409,7 @@ mod tests {
}
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_new_from_existing() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -453,6 +455,7 @@ mod tests {
}
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_manipulate_bookmarks() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -498,6 +501,7 @@ mod tests {
#[test]
#[should_panic]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_bad_bookmark_name() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -516,6 +520,7 @@ mod tests {
}
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_manipulate_recents() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -550,6 +555,7 @@ mod tests {
}
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_dup_recent() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -574,6 +580,7 @@ mod tests {
}
#[test]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_recents_more_than_limit() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());
@@ -621,6 +628,7 @@ mod tests {
#[test]
#[should_panic]
#[cfg(not(target_os = "macos"))] // CI/CD blocks
fn test_system_bookmarks_add_bookmark_empty() {
let tmp_dir: tempfile::TempDir = create_tmp_dir();
let (cfg_path, key_path): (PathBuf, PathBuf) = get_paths(tmp_dir.path());