From 81095f0ee26cf700d7f18b9a35e5c3c2acd39f8d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 18 Nov 2015 16:42:03 +0100 Subject: torbrowser tests: use mktemp -t properly --- bin/test_torbrowser-launcher.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh index 34412078..9010e6ec 100755 --- a/bin/test_torbrowser-launcher.sh +++ b/bin/test_torbrowser-launcher.sh @@ -125,7 +125,7 @@ download_and_launch() { echo "$(date -u) - starting awesome." timeout -k 30m 29m schroot --run-session -c $SESSION --preserve-environment -- awesome & sleep 2 - DBUS_SESSION_FILE=$(mktemp) + DBUS_SESSION_FILE=$(mktemp -t torbrowser-launcher-XXXXXX) DBUS_SESSION_POINTER=$(schroot --run-session -c $SESSION --preserve-environment -- ls $HOME/.dbus/session-bus/ -t1 | head -1) schroot --run-session -c $SESSION --preserve-environment -- cat $HOME/.dbus/session-bus/$DBUS_SESSION_POINTER > $DBUS_SESSION_FILE . $DBUS_SESSION_FILE && export DBUS_SESSION_BUS_ADDRESS @@ -281,8 +281,8 @@ if [ -z "$1" ] ; then fi SUITE=$1 UPGRADE_SUITE="" -TMPDIR=$(mktemp -d) # where everything actually happens -TBL_LOGFILE=$(mktemp) +TMPDIR=$(mktemp -d -t torbrowser-launcher-XXXXXX) # where everything actually happens +TBL_LOGFILE=$(mktemp -t torbrowser-launcher-XXXXXX) SESSION="tbb-launcher-$SUITE-$(basename $TMPDIR)" STARTTIME=$(date +%Y%m%d%H%M) VIDEO=test-torbrowser-${SUITE}_$STARTTIME.mpg -- cgit v1.2.3-70-g09d2