diff --git a/common/rc b/common/rc index edfba5d2..e1ab2c67 100644 --- a/common/rc +++ b/common/rc @@ -1496,7 +1496,7 @@ _require_scratch_nocheck() { case "$FSTYP" in glusterfs) - echo $SCRATCH_DEV | grep -q "\w:\w" > /dev/null 2>&1 + echo $SCRATCH_DEV | egrep -q ":/?" > /dev/null 2>&1 if [ -z "$SCRATCH_DEV" -o "$?" != "0" ]; then _notrun "this test requires a valid \$SCRATCH_DEV" fi @@ -1584,7 +1584,7 @@ _require_test() { case "$FSTYP" in glusterfs) - echo $TEST_DEV | grep -q "\w:\w" > /dev/null 2>&1 + echo $TEST_DEV | egrep -q ":/?" > /dev/null 2>&1 if [ -z "$TEST_DEV" -o "$?" != "0" ]; then _notrun "this test requires a valid \$TEST_DEV" fi