diff --git a/lang/interpret_test.go b/lang/interpret_test.go index 70c15a9c..9bae4487 100644 --- a/lang/interpret_test.go +++ b/lang/interpret_test.go @@ -163,7 +163,9 @@ func TestAstFunc1(t *testing.T) { return } comment := strings.TrimSpace(string(archive.Comment)) - t.Logf("comment: %s\n", comment) + if comment != "" { + t.Logf("comment: %s\n", comment) + } // copy files out into the test temp directory var testOutput []byte @@ -616,7 +618,9 @@ func TestAstFunc2(t *testing.T) { return } comment := strings.TrimSpace(string(archive.Comment)) - t.Logf("comment: %s\n", comment) + if comment != "" { + t.Logf("comment: %s\n", comment) + } // copy files out into the test temp directory var testOutput []byte @@ -1394,7 +1398,9 @@ func TestAstFunc3(t *testing.T) { return } comment := strings.TrimSpace(string(archive.Comment)) - t.Logf("comment: %s\n", comment) + if comment != "" { + t.Logf("comment: %s\n", comment) + } // copy files out into the test temp directory var testOutput []byte