]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Update test to run on all linux platform
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 18 Jun 2008 06:49:19 +0000 (06:49 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 18 Jun 2008 06:49:19 +0000 (06:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7161 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions
regress/tests/next-vol-test

index 96095a3981a661e17e56215a9fb5c465141dbecb..5996f2d1c29247cd9affff60b9525ddfc69e9590 100644 (file)
@@ -60,7 +60,16 @@ require_vtape()
 {
 if test x${USE_VTAPE} = x ; then
    echo "$TestName test needs the vtape driver."
-   exit 1
+   exit 0
+fi
+}
+
+require_linux()
+{
+os=`uname`
+if [ $os != 'Linux']; then
+   echo "This test $TestName runs only on Linux"
+   exit 0
 fi
 }
 
index 1d354ca1cd738cd95051a2f7b626a79ddf57238c..f8a89be59170ec442621bd8a4d0fc7ca1af797ca 100755 (executable)
@@ -3,20 +3,18 @@
 # This script will test next vol algo with
 # vtape
 #
-
 . scripts/functions
 
-require_vtape
+TestName="next-vol-test"
+JobName=backup
 
+require_linux
 scripts/cleanup
 scripts/copy-tape-confs
 cp scripts/bacula-dir-vtape.conf bin/bacula-dir.conf
 cp scripts/bacula-sd-vtape.conf bin/bacula-sd.conf
-
 scripts/prepare-fake-autochanger
 
-TestName="next-vol-test"
-JobName=backup
 
 start_test
 
@@ -71,7 +69,7 @@ run level=full pool=Test NightlySave yes
 wait
 message
 list volume
-@# Must choose vol52 <--------- BUG vol50
+@# Must choose vol52
 run level=full pool=Test NightlySave yes
 wait
 message