summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/mount-nfs-auth.t2
-rw-r--r--tests/basic/peer-parsing.t2
-rwxr-xr-xtests/bugs/cli/bug-1320388.t2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t
index cd0189788ba..082dbbbdcf1 100755
--- a/tests/basic/mount-nfs-auth.t
+++ b/tests/basic/mount-nfs-auth.t
@@ -41,7 +41,7 @@ function build_dirs () {
}
function export_allow_this_host_ipv6 () {
- printf "$EXPORT_ALLOW6\n" > /var/lib/glusterd/nfs/exports
+ printf "$EXPORT_ALLOW6\n" > "$GLUSTERD_WORKDIR"/nfs/exports
}
function export_allow_this_host () {
diff --git a/tests/basic/peer-parsing.t b/tests/basic/peer-parsing.t
index 210ec8ccd90..813b65e2ae1 100644
--- a/tests/basic/peer-parsing.t
+++ b/tests/basic/peer-parsing.t
@@ -2,7 +2,7 @@
. $(dirname $0)/../include.rc
-PEER_DIR=/var/lib/glusterd/peers
+PEER_DIR="$GLUSTERD_WORKDIR"/peers
TEST mkdir -p $PEER_DIR
declare -i HOST_NUM=100
diff --git a/tests/bugs/cli/bug-1320388.t b/tests/bugs/cli/bug-1320388.t
index ca23ab8371d..0bb011f846f 100755
--- a/tests/bugs/cli/bug-1320388.t
+++ b/tests/bugs/cli/bug-1320388.t
@@ -19,7 +19,7 @@ SSL_CA=$SSL_BASE/glusterfs.ca
cleanup;
rm -f $SSL_BASE/glusterfs.*
-touch /var/lib/glusterd/secure-access
+touch "$GLUSTERD_WORKDIR"/secure-access
TEST openssl genrsa -out $SSL_KEY 1024
TEST openssl req -new -x509 -key $SSL_KEY -subj /CN=Anyone -out $SSL_CERT