From c5d55d692aac02a403143fd9fdef9e68ec340a54 Mon Sep 17 00:00:00 2001 From: Nate Johnston Date: Tue, 18 Sep 2018 22:17:08 -0400 Subject: [PATCH] Use mktemp instead of tempfile in gate_hook.sh The gate_hook.sh file uses `tempfile`, which does not exist in Fedora 28. In Ubuntu it is marked as deprecated in favor of `mktemp`, which does exist in Fedora 28. Since we would like to add a set of tests running on Fedora 28 it makes sense to replace references to `tempfile` with `mktemp`. Change-Id: I9c97cc03b569f8ded6b65358c23f04353e12169d --- neutron/tests/contrib/gate_hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/contrib/gate_hook.sh b/neutron/tests/contrib/gate_hook.sh index 47402edde55..2eb0cb4b561 100644 --- a/neutron/tests/contrib/gate_hook.sh +++ b/neutron/tests/contrib/gate_hook.sh @@ -25,7 +25,7 @@ function load_rc_hook { local hook="$1" local tmpfile local config - tmpfile=$(tempfile) + tmpfile=$(mktemp) config=$(cat $GATE_HOOKS/$hook) echo "[[local|localrc]]" > $tmpfile $DSCONF setlc_raw $tmpfile "$config" @@ -44,7 +44,7 @@ function load_conf_hook { # Tweak gate configuration for our rally scenarios function load_rc_for_rally { for file in $(ls $RALLY_EXTRA_DIR/*.setup); do - tmpfile=$(tempfile) + tmpfile=$(mktemp) config=$(cat $file) echo "[[local|localrc]]" > $tmpfile $DSCONF setlc_raw $tmpfile "$config"