From b59a383dc537b7f986fba7db110fde40aece8be8 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 18 Jun 2008 06:49:19 +0000 Subject: [PATCH] ebl Update test to run on all linux platform git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7161 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 11 ++++++++++- regress/tests/next-vol-test | 10 ++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index 96095a3981..5996f2d1c2 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -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 } diff --git a/regress/tests/next-vol-test b/regress/tests/next-vol-test index 1d354ca1cd..f8a89be591 100755 --- a/regress/tests/next-vol-test +++ b/regress/tests/next-vol-test @@ -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 -- 2.39.5