1
0
Fork 0

Collect all tests that are skipped due to a previous crash (#9011)

This commit is contained in:
Tobias Gödderz 2019-05-29 15:32:57 +02:00 committed by Michael Hackstein
parent 73ac4f194d
commit bdfa6c6951
1 changed files with 17 additions and 5 deletions

View File

@ -196,12 +196,24 @@ function performTests (options, testList, testname, runFn, serverOptions, startS
}
while (first || options.loopEternal) {
if (!continueTesting) {
print('oops! Skipping, ' + te + ' server is gone.');
results[te] = {
status: false,
message: instanceInfo.exitStatus
};
if (!results.hasOwnProperty('SKIPPED')) {
print('oops! Skipping remaining tests, server is gone.');
results['SKIPPED'] = {
status: false,
message: ""
};
results[te] = {
status: false,
message: 'server crashed'
}
} else {
if (results['SKIPPED'].message !== '') {
results['SKIPPED'].message += ', ';
}
results['SKIPPED'].message += te;
}
instanceInfo.exitStatus = 'server is gone.';