]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Fri, 4 Jan 2008 18:33:00 +0000 (18:33 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 4 Jan 2008 18:33:00 +0000 (18:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6226 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions
regress/tests/two-pool-2t1da-tape
regress/tests/vol-duration-2t1da-tape

index 798bc0a786721ae385fd7dca179c4244554b5f56..656b7317338cc25c6937375794cfc803be04b3e3 100644 (file)
@@ -25,6 +25,14 @@ if [ $MUID != 0 ] ; then
 fi
 }
 
+skip_if_no_autochanger()
+{
+if test x${AUTOCHANGER} = x/dev/null ; then
+   echo "$TestName test skipped. No autochanger."
+   exit
+fi
+
+}
 
 set_debug()
 {
index 8e635acaad79f35cca211f88adfbd60756e5173b..b90634f0b70c54a76f706430dc897f3e196f2adc 100755 (executable)
@@ -11,10 +11,7 @@ TestName="two-pool-2t1da-tape"
 JobName=twopooltape
 . scripts/functions
 
-if test x${AUTOCHANGER} = x/dev/null ; then
-   echo "${TestName} test skipped. No autochanger."
-   exit
-fi
+skip_if_no_autochanger
 
 scripts/cleanup
 scripts/copy-2tape-confs
index 55f1d284d54b4eaec55dd0d8c1081b08e13bd24d..0a5ca900daa69f0d73e52ea55abf139888933754 100755 (executable)
@@ -13,7 +13,7 @@ TestName="vol-duration-2t1da-tape"
 JobName=VolDuration
 . scripts/functions
 
-skip_if_not_autochanger
+skip_if_no_autochanger
 
 scripts/cleanup
 scripts/copy-2tape-confs