]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/functions
ebl add 3 others errors
[bacula/bacula] / regress / scripts / functions
index cf3511167093b6c43ff52a84485707d5378e7c15..73734f6a24d0941a5f4a8ab8c8f4ee80816a74d0 100644 (file)
@@ -11,6 +11,20 @@ start_test()
    echo " "
 }
 
+require_root()
+{
+MUID=`/usr/bin/id | awk -F= '{print $2}' | awk -F\( '{print $1}'`
+if [ $MUID != 0 ] ; then
+   echo " "
+   echo "You must be root to run this test."
+   echo "  ===== !!!! $TestName not run at `date +%R:%S` ==="
+   echo "  ===== !!!! $TestName not run at `date +%R:%S` !!!! ===== " >>test.out
+   echo " "
+   exit 1
+fi
+}
+
+
 set_debug()
 {
    debug=$1