From: Eric Bollengier Date: Fri, 28 Jan 2022 14:56:49 +0000 (+0100) Subject: regress: Fix metadata-test X-Git-Tag: Beta-15.0.0~663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67efda89ca1af13e381a9ca17eb9a6e5709e0b81;p=thirdparty%2Fbacula.git regress: Fix metadata-test --- diff --git a/regress/tests/metadata-test b/regress/tests/metadata-test index 73e8c58fd..6257c132b 100755 --- a/regress/tests/metadata-test +++ b/regress/tests/metadata-test @@ -224,7 +224,7 @@ exit (scalar(@{$j->{data}}) == 1);' grep '{' $tmp/log_$mode.8.out | perl -MJSON -e ' $l = <>; $j = JSON::decode_json($l) ; -exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:39:19");' +exit (scalar(@{$j->{data}}) == 2 && $j->{data}->[0]->{emailtime} eq "2021-09-15 12:39:19");' if [ $? != 1 ]; then print_debug "ERROR: Incorrect data in $tmp/log_$mode.8.out" @@ -235,7 +235,7 @@ exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:39:19 grep '{' $tmp/log_$mode.9.out | perl -MJSON -e ' $l = <>; $j = JSON::decode_json($l) ; -exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:40:19");' +exit (scalar(@{$j->{data}}) == 2 && $j->{data}->[0]->{emailtime} eq "2021-09-15 12:40:19");' if [ $? != 1 ]; then print_debug "ERROR: Incorrect data in $tmp/log_$mode.9.out" @@ -279,7 +279,7 @@ exit (scalar(@{$j->{data}}) == 1);' grep '{' $tmp/log_$mode.13.out | perl -MJSON -e ' $l = <>; $j = JSON::decode_json($l) ; -exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailsize} < 100000);' +exit (scalar(@{$j->{data}}) == 2 && $j->{data}->[0]->{emailsize} < 100000);' if [ $? != 1 ]; then print_debug "ERROR: Incorrect data in $tmp/log_$mode.13.out"