From b623c1450525afc15639b916c3efa0ceee6478d3 Mon Sep 17 00:00:00 2001 From: Lightning Date: Wed, 10 Jan 2024 12:01:54 +0100 Subject: [PATCH] fix broken test assume that we have `--quick-generate-key` if we run gpg2 instead of doing a dry run for that (which has side effects that break the test) --- integrationTest/ithelpers.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/integrationTest/ithelpers.go b/integrationTest/ithelpers.go index 5a49dcca..35f7d625 100644 --- a/integrationTest/ithelpers.go +++ b/integrationTest/ithelpers.go @@ -421,13 +421,8 @@ Expire-Date: 0 func hasQuick(t *testing.T) bool { testing.Init() - fmt.Println("========== Do we have --quick-generate-key?") - err := bbutil.RunBash("gpg2", - "--dry-run", - "--quick-generate-key", - "--batch", - "--passphrase", "", - "foo", "rsa", "encr") + fmt.Println("========== Do we run gpg2?") + err := bbutil.RunBash("gpg2", "--version") fmt.Println("========== Done") if err == nil { return true