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

Simplify generation of temporary files #99

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions btest-diff
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if [ -z "$TEST_DIFF_CANONIFIER" ] || is_binary_mode; then
TEST_DIFF_CANONIFIER="cat"
fi

canon_output=/tmp/test-diff.$$.$canon.tmp
canon_output=$(mktemp -t "test-diff.$canon.tmp.XXXXXX")
bbannier marked this conversation as resolved.
Show resolved Hide resolved
tmpfiles="$tmpfiles $canon_output"
error=0

Expand All @@ -201,7 +201,7 @@ if [ $? -ne 0 ]; then
fi

if [ -n "$baseline" ]; then
canon_baseline=/tmp/test-diff.$$.$canon.baseline.tmp
canon_baseline=$(mktemp -t "test-diff.$canon.baseline.tmp.XXXXXX")
tmpfiles="$tmpfiles $canon_baseline"

# Prepare the baseline. When created by a recent btest-diff, we
Expand Down
Loading