Skip to content

Commit

Permalink
use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
wei-deepbits committed Nov 22, 2023
1 parent 960ef22 commit 9595775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/convert/convert_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func TestCount(t *testing.T) {
}
fmt.Printf("convert successfully\n")

converted_json, err := readJSONFile("/home/wei/code/deepbits/sbom-convert/pkg/convert/", prefix)
converted_json, err := readJSONFile("./", prefix)
// fmt.Println(converted_json)

ori_purls_count := GetPurlsCount(ori_json)
Expand All @@ -293,7 +293,7 @@ func TestCount(t *testing.T) {
t.Errorf("License Check failed. 'Original License Count:', %d, 'Converted License Count:' %d", ori_licenses_count, converted_licenses_count)
}

files, err := filepath.Glob("/home/wei/code/deepbits/sbom-convert/pkg/convert/" + prefix + "*.json")
files, err := filepath.Glob(prefix + "*.json")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 9595775

Please sign in to comment.