diff options
author | orhun <orhun@archlinux.org> | 2021-05-29 02:59:31 +0300 |
---|---|---|
committer | orhun <orhun@archlinux.org> | 2021-05-29 02:59:31 +0300 |
commit | 84528b9e0125918b4a07fd83cf131a7e606634a1 (patch) | |
tree | 2b46bca792c8648705c9d98ab1b27402b4ddfad6 | |
parent | 58649b8d42b7c764e9c62f0103d5a1ee610111e6 (diff) |
test: Test the detail commands if gpg-tests feature is enabled
-rw-r--r-- | src/app/launcher.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/app/launcher.rs b/src/app/launcher.rs index ec838be..9bcff7e 100644 --- a/src/app/launcher.rs +++ b/src/app/launcher.rs @@ -855,16 +855,19 @@ mod tests { app.run_command(Command::Get(String::from("output")))?; assert!(app.prompt.text.contains(&home_dir)); - for (option, value) in vec![ + let mut test_values = vec![ ("output", "/tmp"), ("mode", "normal"), ("armor", "true"), ("minimize", "10"), - ("detail", "full"), ("margin", "2"), ("colored", "true"), ("color", "#123123"), - ] { + ]; + if cfg!(feature = "gpg-tests") { + test_values.push(("detail", "full")); + } + for (option, value) in test_values { app.run_command(Command::Set( option.to_string(), value.to_string(), |