summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun <orhun@archlinux.org>2021-05-29 02:59:31 +0300
committerorhun <orhun@archlinux.org>2021-05-29 02:59:31 +0300
commit84528b9e0125918b4a07fd83cf131a7e606634a1 (patch)
tree2b46bca792c8648705c9d98ab1b27402b4ddfad6
parent58649b8d42b7c764e9c62f0103d5a1ee610111e6 (diff)
test: Test the detail commands if gpg-tests feature is enabled
-rw-r--r--src/app/launcher.rs9
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(),