Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Lightning- committed Jan 10, 2024
1 parent 2b47668 commit b623c14
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions integrationTest/ithelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b623c14

Please sign in to comment.