Skip to content

Commit

Permalink
flush I/O before exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Dec 5, 2024
1 parent b11770c commit 5153f7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ def run_synthetic_tests(enable_automated_rollbacks, slack_notification_channel):

logging.info("****** In run_synthetic_tests")
print("******* In run_synthetic_tests ******")
sys.stdout.flush()
with open("bis_artifact.log", "w") as file:
file.write"******* In run_synthetic_tests ******")
file.write("******* In run_synthetic_tests ******")
file.flush()

sys.exit(1) # To test that this script is actually being run

Expand Down

0 comments on commit 5153f7f

Please sign in to comment.