Skip to content

Commit

Permalink
Add nominal logging for test_all and style_all
Browse files Browse the repository at this point in the history
in separate directories so they can easily be differentiated.
  • Loading branch information
dinkelk committed Sep 14, 2024
1 parent c8f71f3 commit 1ddb11c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion redo/rules/build_style_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def build(self, redo_1, redo_2, redo_3):

# Make a build directory at the top level:
failed_style_log_dir = os.path.join(directory, "build" + os.sep + "failed_style_logs")
log_dir = os.path.join(directory, "build" + os.sep + "style_logs")
filesystem.safe_makedir(failed_style_log_dir)
filesystem.safe_makedir(log_dir)

# Run tests:
exit_code = 0
Expand All @@ -96,7 +98,8 @@ def build(self, redo_1, redo_2, redo_3):
sys.stderr.flush()
database.setup.reset()
try:
redo.redo([os.path.join(test, "style"), "2>/dev/null", "1>/dev/null"])
style_run_log = os.path.join(log_dir, rel_test.replace(os.sep, "_") + ".log")
redo.redo([os.path.join(test, "style"), "1>&2", "2>" + style_run_log])

# See if there is anything in the log file:
style_log = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion redo/rules/build_test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def build(self, redo_1, redo_2, redo_3):

# Make a build directory at the top level:
failed_test_log_dir = os.path.join(directory, "build" + os.sep + "failed_test_logs")
log_dir = os.path.join(directory, "build" + os.sep + "log")
log_dir = os.path.join(directory, "build" + os.sep + "test_logs")
filesystem.safe_makedir(failed_test_log_dir)
filesystem.safe_makedir(log_dir)

Expand Down

0 comments on commit 1ddb11c

Please sign in to comment.