[test/fix] tempfile is non portable linux command and is useless here

Closes #17260390

authorLaurent Peuch <cortex@worlddomination.be>
changesetfce106b9977d
branchdefault
phasepublic
hiddenno
parent revision#da416fb21657 [test/fix] prevent FirefoxHelper from silently failing to start
child revision#6a3634515bd5 [test/ux] add a warning when test from FirefoxHelper timeout
files modified by this revision
cubicweb/devtools/data/xvfb-run.sh
# HG changeset patch
# User Laurent Peuch <cortex@worlddomination.be>
# Date 1576599555 -3600
# Tue Dec 17 17:19:15 2019 +0100
# Node ID fce106b9977dc4797d4eeedb2fff7231d6684abd
# Parent da416fb216570640d022a8cafb826ed4984438c4
[test/fix] tempfile is non portable linux command and is useless here

Closes #17260390

diff --git a/cubicweb/devtools/data/xvfb-run.sh b/cubicweb/devtools/data/xvfb-run.sh
@@ -146,11 +146,12 @@
1  # If the user did not specify an X authorization file to use, set up a temporary
2  # directory to house one.
3  if [ -z "$AUTHFILE" ]; then
4      XVFB_RUN_TMPDIR="$(mktemp -d -t $PROGNAME.XXXXXX)"
5      # Create empty file to avoid xauth warning
6 -    AUTHFILE=$(tempfile -n "$XVFB_RUN_TMPDIR/Xauthority")
7 +    touch "$XVFB_RUN_TMPDIR/Xauthority"
8 +    AUTHFILE="$XVFB_RUN_TMPDIR/Xauthority"
9  fi
10 
11  # Start Xvfb.
12  MCOOKIE=$(mcookie)
13  tries=10