[test/fix] tempfile is non portable linux command and is useless here
authorLaurent Peuch <cortex@worlddomination.be>
Tue, 17 Dec 2019 17:19:15 +0100
changeset 12821 fce106b9977d
parent 12820 da416fb21657
child 12822 6a3634515bd5
[test/fix] tempfile is non portable linux command and is useless here Closes #17260390
cubicweb/devtools/data/xvfb-run.sh
--- a/cubicweb/devtools/data/xvfb-run.sh	Tue Dec 17 16:56:23 2019 +0100
+++ b/cubicweb/devtools/data/xvfb-run.sh	Tue Dec 17 17:19:15 2019 +0100
@@ -148,7 +148,8 @@
 if [ -z "$AUTHFILE" ]; then
     XVFB_RUN_TMPDIR="$(mktemp -d -t $PROGNAME.XXXXXX)"
     # Create empty file to avoid xauth warning
-    AUTHFILE=$(tempfile -n "$XVFB_RUN_TMPDIR/Xauthority")
+    touch "$XVFB_RUN_TMPDIR/Xauthority"
+    AUTHFILE="$XVFB_RUN_TMPDIR/Xauthority"
 fi
 
 # Start Xvfb.