]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/pretest
update configure
[bacula/bacula] / regress / scripts / pretest
index 369b2a7506ce31cddaa493d7c47316b2ace719a6..08f242382860e808929d424ae4483c3ec8b46ec4 100755 (executable)
@@ -21,33 +21,44 @@ start_test
 
 run_bacula
 if [ $? -ne 0 ]; then
-   echo "Error: bconsole error"
-   error=1
+   echo "Error: Starting Bacula Failed in pretest"
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-dir status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-dir failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-fd status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-fd failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-sd status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-sd failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 stop_bacula
 
-export dstat=0
-export bstat=$error
-export rstat=0
+dstat=0
+bstat=$error
+rstat=0
+export dstat
+export bstat
+export rstat
 
 end_test