From 5484bcbf1abcc114ed2aca8267fafcd92c05bb6d Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 15 Feb 2019 18:17:20 +0000 Subject: [PATCH] Don't error if a non-existant file is passed via TestFailureException --- util/test/rdtest/logging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/test/rdtest/logging.py b/util/test/rdtest/logging.py index d5f2e185d..022bafd0a 100644 --- a/util/test/rdtest/logging.py +++ b/util/test/rdtest/logging.py @@ -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)