mirror of https://gitee.com/bigwinds/arangodb
initialize the testresult summary with an abort message, in case we don't finish successfully (#7046)
This commit is contained in:
parent
eab1488128
commit
c2ce154a15
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue