Skip to content

Commit

Permalink
Check test-avrdude can write to /dev/shm
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Jan 30, 2024
1 parent 742cb9d commit 3d3a387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test-avrdude
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ echo -n "Testing $avrdude_bin"
$avrdude_bin -v 2>&1 | grep Version | cut -f2- -d: | sed s/Version/version/

tmp=/dev/shm # Temporary RAM directory
[ ! -d $tmp ] && tmp=/tmp # Fall back to /tmp if it does not exist
[[ -d $tmp && -w $tmp ]] || tmp=/tmp # Fall back to /tmp if /dev/shm unusable
status=$(mktemp "$tmp/$progname.status.XXXXXX")
logfile=$(mktemp "$tmp/$progname.log.XXXXXX")
outfile=$(mktemp "$tmp/$progname.out.XXXXXX")
Expand Down

0 comments on commit 3d3a387

Please sign in to comment.