From b2409edb80abb03f27e0784a625e84dfa5815de6 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 19 Aug 2024 14:46:25 +0200 Subject: [PATCH] XXX test-avrdude: double check the /tmp file --- tools/test-avrdude | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/test-avrdude b/tools/test-avrdude index 0be49efcf..ce0302b45 100755 --- a/tools/test-avrdude +++ b/tools/test-avrdude @@ -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")