Merge pull request #2077 from RincewindsHat/eval_instead_try_tini

Just use eval instead of Try::Tiny in tests
This commit is contained in:
Lorenz Kästle 2025-03-07 22:39:03 +01:00 committed by GitHub
commit 4173d724a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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