autotest: use mktemp instead of tempfile

more portable
This commit is contained in:
Andrew Tridgell 2013-01-09 12:24:45 +11:00
parent dc66708856
commit d5d2fc667f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -10,7 +10,7 @@ autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../APMrover2 pushd $autotest/../../APMrover2
make clean sitl make clean sitl
tfile=$(tempfile) tfile=$(mktemp)
( (
echo r echo r
) > $tfile ) > $tfile