Do not die in tests if JSON Parsing fails

This commit is contained in:
Lorenz Kästle 2025-03-07 17:28:36 +01:00
parent 5ad1c0e821
commit 18dedf3463

View file

@ -17,6 +17,8 @@ use File::Basename;
use JSON;
use feature 'try';
use IO::File;
use Data::Dumper;
@ -619,7 +621,9 @@ sub testCmd {
chomp $output;
$object->output($output);
$object->{'mp_test_result'} = decode_json($output);
try {
$object->{'mp_test_result'} = decode_json($output);
}
alarm(0);