]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Adapt check_jobmedia() for incomplete jobs
authorEric Bollengier <eric@baculasystems.com>
Thu, 14 Feb 2019 13:40:23 +0000 (14:40 +0100)
committerEric Bollengier <eric@baculasystems.com>
Wed, 5 Aug 2020 14:49:19 +0000 (16:49 +0200)
regress/scripts/functions
regress/scripts/functions.pm

index ca675de7423f19222f1d72c4c622c898a8a6d743..4689804cf4d807f69a3200fd94370bb4d50225a9 100644 (file)
@@ -7,6 +7,10 @@
 
 . ./config
 
+if [ "$TestName" ]; then
+   export TestName
+fi
+
 check_encoding()
 {
    if ${bin}/bacula-dir -d50 -t -c ${conf}/bacula-dir.conf 2>&1 | grep 'Wanted SQL_ASCII, got UTF8' >/dev/null ; then
index 2c4f52240bf02c62be357fa37bfe48fed6fe89f6..b71752b2012f46b5bdb232a41650953a225bc77f 100644 (file)
@@ -116,7 +116,7 @@ BEGIN {
     $ENV{LANG} = 'C';
     $out = ($debug) ? '@tee' : '@out';
 
-    $TestName = basename($0);
+    $TestName = $ENV{TestName} || basename($0);
 
     $dstat = $estat = $rstat = $bstat = $zstat = 0;
 }