From: Eric Bollengier Date: Thu, 14 Feb 2019 13:40:23 +0000 (+0100) Subject: regress: Adapt check_jobmedia() for incomplete jobs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec116ded06ca4f18af3a04f34bb6b50a9098f3c0;p=thirdparty%2Fbacula.git regress: Adapt check_jobmedia() for incomplete jobs --- diff --git a/regress/scripts/functions b/regress/scripts/functions index ca675de74..4689804cf 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -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 diff --git a/regress/scripts/functions.pm b/regress/scripts/functions.pm index 2c4f52240..b71752b20 100644 --- a/regress/scripts/functions.pm +++ b/regress/scripts/functions.pm @@ -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; }