From e406eb22ba6db2edbde8a17d9104b543c9efc0f3 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 19 Feb 2017 20:43:07 +0100 Subject: Get rid of remaining $GOPATH dependencies --- tests/stress_tests/fsstress-gocryptfs.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/stress_tests/fsstress-gocryptfs.bash b/tests/stress_tests/fsstress-gocryptfs.bash index 432899a..dd7f1e7 100755 --- a/tests/stress_tests/fsstress-gocryptfs.bash +++ b/tests/stress_tests/fsstress-gocryptfs.bash @@ -22,8 +22,12 @@ source ../fuse-unmount.bash DIR=$(mktemp -d /tmp/fsstress.XXX) # Mountpoint MNT="$DIR.mnt" + +# Set the GOPATH variable to the default if it is empty +GOPATH=$(go env GOPATH) + # fsstress binary -FSSTRESS=~/src/xfstests/ltp/fsstress +FSSTRESS=$GOPATH/src/xfstests/ltp/fsstress if [ ! -x $FSSTRESS ] then @@ -37,6 +41,8 @@ mkdir -p $DIR $MNT rm -Rf $DIR/* rm -Rf $MNT/* + + # FS-specific compile and mount if [ $MYNAME = fsstress-loopback.bash ]; then echo "Recompile go-fuse loopback" -- cgit v1.2.3