From d0453c5085578a808dae0e1a8c64314f57eb6f40 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 27 Jun 2012 14:28:00 -0700 Subject: [PATCH] Autotest: use mktemp instead of tempfile * tempfile has been deprecated in favor of mktemp on debian, not available on fedora --- Tools/autotest/sim_arducopter.sh | 2 +- Tools/autotest/sim_arducopter10.sh | 2 +- Tools/autotest/sim_arduplane.sh | 2 +- Tools/autotest/sim_arduplane10.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/autotest/sim_arducopter.sh b/Tools/autotest/sim_arducopter.sh index 93e540c863..28cadd060f 100755 --- a/Tools/autotest/sim_arducopter.sh +++ b/Tools/autotest/sim_arducopter.sh @@ -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 diff --git a/Tools/autotest/sim_arducopter10.sh b/Tools/autotest/sim_arducopter10.sh index 262fd6de09..2baab186c4 100755 --- a/Tools/autotest/sim_arducopter10.sh +++ b/Tools/autotest/sim_arducopter10.sh @@ -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 diff --git a/Tools/autotest/sim_arduplane.sh b/Tools/autotest/sim_arduplane.sh index 030aa2144b..a613a6ee20 100755 --- a/Tools/autotest/sim_arduplane.sh +++ b/Tools/autotest/sim_arduplane.sh @@ -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 diff --git a/Tools/autotest/sim_arduplane10.sh b/Tools/autotest/sim_arduplane10.sh index a9c3279bf3..7933775a26 100755 --- a/Tools/autotest/sim_arduplane10.sh +++ b/Tools/autotest/sim_arduplane10.sh @@ -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