From cea0d7c97136aab06db1ff0e335926f793dfda52 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 11 Jun 2021 15:21:22 +1000 Subject: [PATCH] autotest: move autotest tlog files into buildlogs directory --- Tools/autotest/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 74b3afa283d1f..2e7e320cddcea 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -5724,6 +5724,12 @@ def check_logs(self, name): '''called to move relevant log files from our working directory to the buildlogs directory''' to_dir = self.logs_dir + # move telemetry log files + for log in glob.glob("autotest-*.tlog"): + bname = os.path.basename(log) + newname = os.path.join(to_dir, "%s-%s-%s" % (self.log_name(), name, bname)) + print("Renaming %s to %s" % (log, newname)) + shutil.move(log, newname) # move binary log files for log in sorted(self.bin_logs()): bname = os.path.basename(log)