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