Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_cmd.sh: rm -f to ignore nonexistent files #1901

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

wantehchang
Copy link
Collaborator

If test_cmd.sh exits prematurely because of a test failure, some of the files cleanup() wants to remove may not exist. Pass -f to the rm command to ignore nonexistent files.

If test_cmd.sh exits prematurely because of a test failure, some of the
files cleanup() wants to remove may not exist. Pass -f to the rm command
to ignore nonexistent files.
@@ -60,7 +60,7 @@ OUT_MSG="avif_test_cmd_out_msg.txt"
# Cleanup
cleanup() {
pushd ${TMP_DIR}
rm -- "${ENCODED_FILE}" "${ENCODED_FILE_WITH_DASH}" "${DECODED_FILE}" "${OUT_MSG}"
rm -f -- "${ENCODED_FILE}" "${ENCODED_FILE_WITH_DASH}" "${DECODED_FILE}" "${OUT_MSG}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check if any other script needs the same treatment.

@wantehchang wantehchang merged commit 24608d0 into AOMediaCodec:main Dec 23, 2023
20 checks passed
@wantehchang wantehchang deleted the test-cmd-sh-rm-f branch December 23, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants