Don't error if a non-existant file is passed via TestFailureException

This commit is contained in:
baldurk
2019-02-15 18:17:20 +00:00
parent 7ef8ed0a7a
commit 5484bcbf1a
+2
View File
@@ -114,6 +114,8 @@ class TestLogger:
ext = fname.rfind('.')
if ext > 0:
fname = fname[0:ext] + '_ref' + fname[ext:]
if not os.path.exists(f):
continue
shutil.copyfile(f, util.get_artifact_path(fname))
file_list.append(fname)