Skip to content

Commit

Permalink
autotest: move autotest tlog files into buildlogs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jun 11, 2021
1 parent 1fdef75 commit cea0d7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cea0d7c

Please sign in to comment.