Skip to content

Commit

Permalink
XXX test-avrdude: double check the /tmp file
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Aug 19, 2024
1 parent e90ee05 commit 6c3a55d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/test-avrdude
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ if [[ $verbose -eq 1 ]]; then
fi

[[ -d $tmp && -w $tmp ]] || tmp=/tmp # Fall back to /tmp if tmp directory unusable

if [[ $verbose -eq 1 ]]; then
echo "tmp=$tmp"
id
ls -ld "$tmp"
tmpfile="$tmp/date.txt$$"
date > "$tmpfile"
cat "$tmpfile"
rm -f "$tmpfile"
fi

status=$(mktemp "$tmp/$progname.status.XXXXXX")
logfile=$(mktemp "$tmp/$progname.log.XXXXXX")
outfile=$(mktemp "$tmp/$progname.out.XXXXXX")
Expand Down

0 comments on commit 6c3a55d

Please sign in to comment.