mirror of https://gitee.com/bigwinds/arangodb
Feature/log timestamp on test start (#6759)
This commit is contained in:
parent
fac7b48c74
commit
056ee7064c
|
@ -805,10 +805,10 @@ function shutdownArangod (arangod, options, forceTerminate) {
|
|||
} else {
|
||||
const requestOptions = makeAuthorizationHeaders(options);
|
||||
requestOptions.method = 'DELETE';
|
||||
print(arangod.url + '/_admin/shutdown');
|
||||
print(Date() + ' ' + arangod.url + '/_admin/shutdown');
|
||||
const reply = download(arangod.url + '/_admin/shutdown', '', requestOptions);
|
||||
if (options.extremeVerbosity) {
|
||||
print('Shutdown response: ' + JSON.stringify(reply));
|
||||
print(Date() + ' Shutdown response: ' + JSON.stringify(reply));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -292,7 +292,7 @@ function performTests (options, testList, testname, runFn, serverOptions, startS
|
|||
print(RED + 'No testcase matched the filter.' + RESET);
|
||||
}
|
||||
|
||||
print('Shutting down...');
|
||||
print(Date() + ' Shutting down...');
|
||||
if (startStopHandlers !== undefined && startStopHandlers.hasOwnProperty('preStop')) {
|
||||
customInstanceInfos['preStop'] = startStopHandlers.preStop(options,
|
||||
serverOptions,
|
||||
|
|
|
@ -47,7 +47,7 @@ function setTestFilter(filter) {
|
|||
}
|
||||
|
||||
jsUnity.results.begin = function (total, suiteName) {
|
||||
print('Running ' + (suiteName || 'unnamed test suite'));
|
||||
print(Date() + ' Running ' + (suiteName || 'unnamed test suite'));
|
||||
print(' ' + total + ' test(s) found');
|
||||
print();
|
||||
RESULTS = {};
|
||||
|
|
|
@ -367,7 +367,7 @@ var jsUnity = exports.jsUnity = (function () {
|
|||
jsUnity.tap.write("# " + suiteName);
|
||||
jsUnity.tap.write("1.." + total);
|
||||
|
||||
jsUnity.log.info("Running "
|
||||
jsUnity.log.info(Date() + " Running "
|
||||
+ (suiteName || "unnamed test suite"));
|
||||
jsUnity.log.info(plural(total, "test") + " found");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue