#!/bin/bash source $cwd/regression_helpers $GLUSTERFSDIR/gluster volume create vol$global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null $GLUSTERFSDIR/gluster volume start vol$global_bug_id 2>/dev/null 1>/dev/null #mount on an invalid mount point which does NOT exists and check #whether error message is shown MNTPT="/blahblah" mount -t glusterfs $(hostname):vol$global_bug_id $MNTPT | grep "ERROR: Mount point does not exist." exit $?