Skip to content

Commit

Permalink
disable edit test on windows
Browse files Browse the repository at this point in the history
while searching how to pass a parameter to a cmd script
  • Loading branch information
glehmann committed Feb 10, 2024
1 parent 39a8528 commit feb26dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const EDITOR: &str = "cmd /c 'echo hop: hop >> %0'";
#[cfg(not(windows))]
const EDITOR: &str = "bash -c 'echo hop: hop >> $0'";

#[cfg(not(windows))]
#[test]
fn edit_key_file_from_args() {
let (_tmp, key_path, _, _, encrypted_path) = generate_encrypted_file();
Expand All @@ -35,6 +36,7 @@ fn edit_key_file_from_args() {
);
}

#[cfg(not(windows))]
#[test]
fn edit_key_file_from_env() {
let (_tmp, key_path, _, _, encrypted_path) = generate_encrypted_file();
Expand All @@ -55,6 +57,7 @@ fn edit_key_file_from_env() {
);
}

#[cfg(not(windows))]
#[test]
fn edit_key_from_env() {
let (_tmp, key_path, _, _, encrypted_path) = generate_encrypted_file();
Expand All @@ -74,6 +77,7 @@ fn edit_key_from_env() {
);
}

#[cfg(not(windows))]
#[test]
fn edit_key_from_stdin() {
let (_tmp, key_path, _, _, encrypted_path) = generate_encrypted_file();
Expand Down

0 comments on commit feb26dd

Please sign in to comment.