Skip to content

Commit 4556915

Browse files
committed
test: make artifactcopy error message quieter
If this operation fails, we do not change our behavior, so there is no need to have it print a warning every time. If it fails, the artifacts file will not exist, but that is fine.
1 parent 0dd53c0 commit 4556915

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,10 @@ func execTest(ctx context.Context, suiteRun *testSuiteRun, run *testRun, accessN
229229
tgtPath := filepath.Join(run.outDir, vm.vmName(), filepath.Dir(directory))
230230
os.MkdirAll(tgtPath, 0755)
231231
if err := copyDir(logger, vm, run.outDir, directory, tgtPath); err != nil {
232-
logger.Infof("ARTIFACTCOPY: FAILED copy artifact directory %s: %s", directory, err.Error())
233-
dumpStderr(logger, err)
232+
logger.Debugf("ARTIFACTCOPY: FAILED copy artifact directory %s: %s", directory, err.Error())
233+
if logger.IsLevelEnabled(log.DebugLevel) {
234+
dumpStderr(logger, err)
235+
}
234236
}
235237
}
236238
}

0 commit comments

Comments
 (0)