1
0
Fork 0

initialize the testresult summary with an abort message, in case we don't finish successfully (#7046)

This commit is contained in:
Wilfried Goesgens 2018-10-24 16:02:17 +02:00 committed by Jan
parent eab1488128
commit c2ce154a15
1 changed files with 7 additions and 0 deletions

View File

@ -220,6 +220,13 @@ function main (argv) {
try {
fs.write(testOutputDirectory + '/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json', "false", true);
fs.write(testOutputDirectory + '/UNITTEST_RESULT_CRASHED.json', "true", true);
let testFailureText = 'testfailures.txt';
if (options.hasOwnProperty('testFailureText')) {
testFailureText = options.testFailureText;
}
fs.write(fs.join(testOutputDirectory, testFailureText),
"Incomplete testrun with these testsuites: '" + testSuits +
"'\nand these options: " + JSON.stringify(options) + "\n");
} catch (x) {
print('failed to write default test result: ' + x.message);
throw(x);