mirror of https://gitee.com/bigwinds/arangodb
fix output of result yaml, but we only want it if extreme verbosity is set.
This commit is contained in:
parent
ece6a0c035
commit
d36a91e694
|
@ -511,11 +511,13 @@ function unitTest (cases, options) {
|
||||||
print("not cleaning up since we didn't start the server ourselves\n");
|
print("not cleaning up since we didn't start the server ourselves\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (options.extremeVerbosity === true) {
|
||||||
yaml.safeDump(JSON.parse(JSON.stringify(results)));
|
try {
|
||||||
} catch (err) {
|
print(yaml.safeDump(JSON.parse(JSON.stringify(results))));
|
||||||
print(RED + 'cannot dump results: ' + String(err) + RESET);
|
} catch (err) {
|
||||||
print(RED + require('internal').inspect(results) + RESET);
|
print(RED + 'cannot dump results: ' + String(err) + RESET);
|
||||||
|
print(RED + require('internal').inspect(results) + RESET);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jsonReply === true) {
|
if (jsonReply === true) {
|
||||||
|
|
Loading…
Reference in New Issue