1
0
Fork 0

output setup failures to testfailures.txt (#9188)

This commit is contained in:
Wilfried Goesgens 2019-06-05 09:55:54 +02:00 committed by Jan
parent 8ea080355a
commit 1d2071420b
1 changed files with 15 additions and 1 deletions

View File

@ -781,7 +781,21 @@ function unitTest (cases, options) {
}; };
} }
pu.setupBinaries(options.build, options.buildType, options.configDir); try {
pu.setupBinaries(options.build, options.buildType, options.configDir);
}
catch (err) {
print(err);
return {
status: false,
crashed: true,
ALL: [{
status: false,
failed: 1,
message: err.message
}]
};
}
const jsonReply = options.jsonReply; const jsonReply = options.jsonReply;
delete options.jsonReply; delete options.jsonReply;