Skip to content

Commit

Permalink
test: use exist_ok when making updated dir (typo...)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jun 30, 2023
1 parent 67d34be commit d5580d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run_replay_tests.py
Expand Up @@ -720,7 +720,7 @@ def on_result_updated(w: ReplayResultUpdatedHandler):
# .zplay files are updated in-place, but lets also copy over to the test output folder.
# This makes it easy to upload an archive of updated replays in CI.
if mode == 'update' and watcher.result['changed']:
(test_results_dir / 'updated').mkdir(exists_ok=True)
(test_results_dir / 'updated').mkdir(exist_ok=True)
shutil.copy2(replay_file, test_results_dir / 'updated' / replay_file.name)
break
except ReplayTimeoutException:
Expand Down

0 comments on commit d5580d5

Please sign in to comment.