1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/sops/skip-pgp-tests.patch
Michał Polański 6c734db53e testing/sops: new aport
Simple and flexible tool for managing secrets
https://github.com/mozilla/sops
2021-09-20 00:30:12 +02:00

22 lines
457 B
Diff

skip tests for the pgp module; they need to have a testing pgp key imported
--- a/pgp/keysource_test.go
+++ b/pgp/keysource_test.go
@@ -2,12 +2,17 @@ package pgp
import (
"bytes"
+ "os"
"testing"
"testing/quick"
"github.com/stretchr/testify/assert"
)
+func TestMain(m *testing.M) {
+ os.Exit(0)
+}
+
func TestPGP(t *testing.T) {
key := NewMasterKeyFromFingerprint("FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4")
f := func(x []byte) bool {