Skip to content

Commit

Permalink
on recording start unlink existing uncompressed recording
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed Sep 26, 2020
1 parent 255e6d5 commit 9b4f012
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- When starting a recording, remove any existing uncompressed file.

## [0.9.0] - 2020-09-24

### Breaking
Expand Down
2 changes: 2 additions & 0 deletions interposer/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def setUpClass(cls) -> None:
fout.write(fin.read())
else:
recordings.mkdir(parents=True, exist_ok=True)
if recording.exists():
recording.unlink()

cls.tapedeck = TapeDeck(recording, mode)
cls.tapedeck.open()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
description = "A code intercept wrapper with recording and playback options."
major = 0
minor = 9
patch = 0
patch = 1

# Everything below should be cookie-cutter

Expand Down

0 comments on commit 9b4f012

Please sign in to comment.