From ae165bd6d7c3a0130984cbd927be318146c7bbdd Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Tue, 12 Jan 2016 16:38:27 +0530 Subject: tests/quota : fix failing test on auxiliary mount point In test file tests/bugs/quota/bug-1049323.t, test "EXPECT "0" get_aux" fails in Fedora. In get_aux function we grep for "/var/run/gluster/" to check if auxiliary mount point is created and we return 0 on success else we return 1. In fedora, auxiliary mount point is created on "/run/gluster/". So it fails on Fedora. The patch fixes it by just grepping for "/run/gluster/". Change-Id: Icb59395df4a98109eaa8199cbdbdedcd1cbef27a BUG: 1297740 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/13228 Reviewed-by: Niels de Vos Reviewed-by: Raghavendra Talur Tested-by: NetBSD Build System --- tests/volume.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 818f83da99b..986d8dac15f 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -550,7 +550,7 @@ function num_graphs function get_aux() { ##Check if a auxiliary mount is there -df -h 2>&1 | grep "/var/run/gluster/$V0" - +df -h 2>&1 | grep -e "[[:space:]]/run/gluster/${V0}$" -e "[[:space:]]/var/run/gluster/${V0}$" - if [ $? -eq 0 ] then -- cgit