fix CI: skip metadata tests when test_data is absent, use fmt.Fprintf in genevents
This commit is contained in:
1 parent
517c1685d8
commit
b725b801c1
3 files changed
+9
-1
No files matched your search
@@ -13,6 +13,10 @@ func testFlacFiles(t *testing.T) []string {
|
||||
|
||||
root := filepath.Join("..", "..", "test_data")
|
||||
|
||||
if _, err := os.Stat(root); os.IsNotExist(err) {
|
||||
t.Skip("test_data directory not present, skipping")
|
||||
}
|
||||
|
||||
var files []string
|
||||
|
||||
err := filepath.Walk(root, func(
|
||||
|
||||
@@ -13,6 +13,10 @@ func testMP3Files(t *testing.T) []string {
|
||||
|
||||
root := filepath.Join("..", "..", "test_data")
|
||||
|
||||
if _, err := os.Stat(root); os.IsNotExist(err) {
|
||||
t.Skip("test_data directory not present, skipping")
|
||||
}
|
||||
|
||||
var files []string
|
||||
|
||||
err := filepath.Walk(root, func(
|
||||
|
||||
Reference in new issue
Block a user