File: 0001-Tolerate-absence-of-spec-submodule.patch

package info (click to toggle)
golang-github-multiformats-go-multibase 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: makefile: 7
file content (40 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Reinhard Tartler <siretart@tauware.de>
Date: Sat, 16 Aug 2025 18:51:25 -0400
Subject: Tolerate absence of spec/ submodule
Forwarded: not-needed

---
 spec_test.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/spec_test.go b/spec_test.go
index c8fff4f..cb06439 100644
--- a/spec_test.go
+++ b/spec_test.go
@@ -13,7 +13,7 @@ import (
 func TestSpec(t *testing.T) {
 	file, err := os.Open("spec/multibase.csv")
 	if err != nil {
-		t.Fatal(err)
+		t.Skipf("Cannot execute test with spec: %v", err)
 	}
 	defer file.Close()
 
@@ -68,7 +68,7 @@ func TestSpec(t *testing.T) {
 func TestSpecVectors(t *testing.T) {
 	files, err := filepath.Glob("spec/tests/*.csv")
 	if err != nil {
-		t.Fatal(err)
+		t.Skipf("Cannot execute test with spec: %v", err)
 	}
 	for _, fname := range files {
 		t.Run(fname, func(t *testing.T) {
@@ -149,7 +149,7 @@ func TestSpecVectors(t *testing.T) {
 func FuzzDecode(f *testing.F) {
 	files, err := filepath.Glob("spec/tests/*.csv")
 	if err != nil {
-		f.Fatal(err)
+		f.Skipf("Cannot execute test with spec: %v", err)
 	}
 	for _, fname := range files {
 		func() {