Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented Apr 11, 2023

When TORCHAUDIO_TEST_TEMP_DIR is set,
all the unit test temporary data are stored in the given directory.
Running unit tests multiple times reuses the
directory and the temporary files from the
previous test runs are found there.

FFmpeg save test writes reference data to the
temporary directory, but it is not given the
overwrite flag ("-y"), so it fails in such cases.

This commit fixes that.

When `TORCHAUDIO_TEST_TEMP_DIR` is set, 
all the unit test temporary data are stored in the 
given directory.
Running unit tests multiple times reuses the 
directory and the temporary files from the 
previous test runs are found there.

FFmpeg save test writes reference data to the 
temporary directory, but it is not given the 
overwrite flag ("-y"), so it fails in such cases.

This commit fixes that.
@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mthrok mthrok marked this pull request as ready for review April 11, 2023 02:08
@facebook-github-bot
Copy link
Contributor

@mthrok merged this pull request in cc7b8bd.

@github-actions
Copy link

Hey @mthrok.
You merged this PR, but labels were not properly added. Please add a primary and secondary label (See https://github.com/pytorch/audio/blob/main/.github/process_commit.py)

@mthrok mthrok deleted the mthrok-patch-1 branch April 12, 2023 01:04
@mthrok mthrok added the other label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants