Skip to content

Commit 024ff97

Browse files
author
Nathan Gillett
committed
Resolve relative INTENTPROOF_SPEC_DIR in golden test
Signed-off-by: Nathan Gillett <nathan@intentproof.io>
1 parent 8519faa commit 024ff97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

intentproof/signing_golden_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import (
1313
func signingFixtureDir(t *testing.T) string {
1414
t.Helper()
1515
if specDir := strings.TrimSpace(os.Getenv("INTENTPROOF_SPEC_DIR")); specDir != "" {
16+
if !filepath.IsAbs(specDir) {
17+
specDir = filepath.Join("..", specDir)
18+
}
1619
return filepath.Join(specDir, "golden", "sdk-signing")
1720
}
1821
return filepath.Join("..", "testdata", "fixtures")

0 commit comments

Comments
 (0)