Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 11, 2024
1 parent 6c3de4e commit 5841175
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions suite/auto-sync/src/autosync/MCUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,16 @@ def write_to_build_dir(self):
f.write(test.get_cs_testfile_content(only_test=(write_mode == "a")))
log.debug(f"Write {filename}")
files_written.add(filename)
log.info(f"Wrote {file_cnt} files with {test_cnt} test cases.")
log.info(
f"Processed {file_cnt} files with {test_cnt} test cases. Generated {len(files_written)} files"
)

def build_test_files(self, mc_cmds: list[LLVM_MC_Command]) -> list[TestFile]:
log.info("Build TestFile objects")
test_files = list()
n_all = len(mc_cmds)
for i, mcc in enumerate(mc_cmds):
print(f"{i}/{n_all}", flush=True, end="\r")
print(f"{i}/{n_all} {mcc.file.name}", flush=True, end="\r")
test_files.append(TestFile(self.arch, mcc.file, mcc.get_opts_list(), mcc))
return test_files

Expand Down

0 comments on commit 5841175

Please sign in to comment.