mirror of https://github.com/ArduPilot/ardupilot
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:
parent
4e7fe5ec5c
commit
2d71a2affc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue