diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-08-08 05:39:38 +0200 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-08-20 13:46:44 -0700 |
commit | 33be39b42f3b9b0505f83a509ff87d416e106158 (patch) | |
tree | 94facdd61792f0677898927cd0bcbfe30f0c8084 /geo-replication | |
parent | a521fc1d22db5477552c0fabc1f918b43caa50c3 (diff) |
Regression test portability: mktemp
Linux mktemp accepts to run without a template, NetBSD mandates it. Since
the template option has the same syntax, add it everywhere. While there,
also do this in scripts outside of regression testing.
BUG: 764655
Change-Id: I3ec140afbc9009257c81a56d77afcc21fef74cc4
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8432
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Tested-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'geo-replication')
-rwxr-xr-x | geo-replication/src/gverify.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geo-replication/src/gverify.sh b/geo-replication/src/gverify.sh index f2295649571..c5593a39f11 100755 --- a/geo-replication/src/gverify.sh +++ b/geo-replication/src/gverify.sh @@ -24,7 +24,7 @@ function cmd_master() cmd_line=$(cat <<EOF function do_verify() { v=\$1; -d=\$(mktemp -d 2>/dev/null); +d=\$(mktemp -d -t ${0##*/}.XXXXXX 2>/dev/null); glusterfs -s localhost --xlator-option="*dht.lookup-unhashed=off" --volfile-id \$v -l $slave_log_file \$d; i=\$(stat -c "%i" \$d); if [[ "\$i" -ne "1" ]]; then @@ -80,7 +80,7 @@ function slave_stats() local ver; local status; - d=$(mktemp -d 2>/dev/null); + d=$(mktemp -d -t ${0##*/}.XXXXXX 2>/dev/null); glusterfs --xlator-option="*dht.lookup-unhashed=off" --volfile-server $SLAVEHOST --volfile-id $SLAVEVOL -l $slave_log_file $d; i=$(stat -c "%i" $d); if [[ "$i" -ne "1" ]]; then |