Autotest: use mktemp instead of tempfile

* tempfile has been deprecated in favor of mktemp on debian, not available
  on fedora
This commit is contained in:
Pat Hickey 2012-06-27 14:28:00 -07:00
parent 4e7fe5ec5c
commit 2d71a2affc
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduCopter
make clean $target
tfile=$(tempfile)
tfile=$(mktemp)
echo r > $tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduCopter.build/ArduCopter.elf"
gnome-terminal -e /tmp/ArduCopter.build/ArduCopter.elf

View File

@ -26,7 +26,7 @@ autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduCopter
make clean $target-mavlink10
tfile=$(tempfile)
tfile=$(mktemp)
echo r > $tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduCopter.build/ArduCopter.elf"
gnome-terminal -e /tmp/ArduCopter.build/ArduCopter.elf

View File

@ -7,7 +7,7 @@ autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduPlane
make clean sitl
tfile=$(tempfile)
tfile=$(mktemp)
echo r > $tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduPlane.build/ArduPlane.elf"
gnome-terminal -e /tmp/ArduPlane.build/ArduPlane.elf

View File

@ -7,7 +7,7 @@ autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduPlane
make clean sitl-mavlink10
tfile=$(tempfile)
tfile=$(mktemp)
echo r > $tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduPlane.build/ArduPlane.elf"
gnome-terminal -e /tmp/ArduPlane.build/ArduPlane.elf