#!/bin/bash bugid=$(pwd | cut -d '/' -f 4) description="#( $bugid ) description of the bug from bugzilla" comments="#any comment about the bug" version=$1 mountdir=/mnt/regr/$bugid/$version function ok () { desc=$@ echo "ok - $desc" } function not_ok () { desc=$@ echo "not ok - $desc" } function comment () { desc=$@ echo "$desc" } [ $# -ne 1 ] && { not_ok "#" exit } /opt/qa/regr/setup $version $bugid #testcase here sleep 5 if [ $(mount | grep "$mountdir/client1" | wc -l) -ne 0 ];then not_ok $description comment $comments else ok $description fi /opt/qa/regr/cleanup $version $bugid