From fdf424ea4f70e42a4c353ea6e855ab1c426c34a4 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 11 Oct 2011 10:04:22 +0530 Subject: [PATCH] (test suite) dont put adc's in /tmp --- t/t64-write-able | 8 ++++---- t/t67-hub | 8 ++++---- t/test-driver.sh | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/t/t64-write-able b/t/t64-write-able index 252af10..84acdf4 100644 --- a/t/t64-write-able +++ b/t/t64-write-able @@ -6,10 +6,10 @@ do editrc GL_BIG_CONFIG $bc editrc GL_WILDREPOS 1 - rm -rf /tmp/glt-adc - mkdir /tmp/glt-adc || die "mkdir /tmp/glt-adc failed" - cp ../contrib/adc/* /tmp/glt-adc - echo "\$GL_ADC_PATH = '/tmp/glt-adc';" | addrc + rm -rf $ADC_PATH + mkdir $ADC_PATH || die "mkdir $ADC_PATH failed" + cp ../contrib/adc/* $ADC_PATH + echo "\$GL_ADC_PATH = '$ADC_PATH';" | addrc runremote rm -f .gitolite.down # ---------- diff --git a/t/t67-hub b/t/t67-hub index 9f1135e..e8e2c07 100644 --- a/t/t67-hub +++ b/t/t67-hub @@ -6,10 +6,10 @@ do editrc GL_BIG_CONFIG $bc editrc GL_WILDREPOS 1 - rm -rf /tmp/glt-adc - mkdir /tmp/glt-adc || die "mkdir /tmp/glt-adc failed" - cp ../contrib/adc/* /tmp/glt-adc - echo "\$GL_ADC_PATH = '/tmp/glt-adc';" | addrc + rm -rf $ADC_PATH + mkdir $ADC_PATH || die "mkdir $ADC_PATH failed" + cp ../contrib/adc/* $ADC_PATH + echo "\$GL_ADC_PATH = '$ADC_PATH';" | addrc runremote rm -f .gitolite.down # ---------- diff --git a/t/test-driver.sh b/t/test-driver.sh index 83c2134..ca71a4e 100755 --- a/t/test-driver.sh +++ b/t/test-driver.sh @@ -1,5 +1,8 @@ #!/bin/bash +# some defines +export ADC_PATH="$HOME/glt-adc" + # are we in the right place cd ${0%/*} git rev-parse --show-toplevel || die should run t/test-driver.sh from a clone of gitolite