[pve-devel] applied: [PATCH storage 5/5] tests: improve error handling of run_disk_tests
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Jun 4 10:28:02 CEST 2019
On 6/4/19 9:21 AM, Dominik Csapak wrote:
> if Diskmanage.pm has a syntax error, this will now catch it
> during build
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> test/run_disk_tests.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/run_disk_tests.pl b/test/run_disk_tests.pl
> index d955a02..c1a698e 100755
> --- a/test/run_disk_tests.pl
> +++ b/test/run_disk_tests.pl
> @@ -8,5 +8,5 @@ use TAP::Harness;
> my $harness = TAP::Harness->new( { verbosity => -2 });
> my $res = $harness->runtests( "disklist_test.pm" );
>
> -exit -1 if $res->{failed};
> +exit -1 if !$res || $res->{failed} || $res->{parse_errors};
>
>
applied, thanks!
More information about the pve-devel
mailing list