1
0
Fork 0

Output a real descritption of whats happening with the arangosh instead of dumping the start parameters

This commit is contained in:
Wilfried Goesgens 2015-11-12 10:39:55 +01:00
parent 91fccfd7ea
commit 7a41ef1e00
1 changed files with 2 additions and 2 deletions

View File

@ -1550,16 +1550,16 @@ testFuncs.arangosh = function (options) {
var args = makeTestingArgsClient(options);
var arangosh = fs.join("bin","arangosh");
print("Starting arangosh with exception throwing script:");
args["javascript.execute-string"] = "throw('foo')";
print(toArgv(args));
var rc = executeExternalAndWait(arangosh, toArgv(args));
var failSuccess = (rc.hasOwnProperty('exit') && rc.exit === 1);
if (!failSuccess) {
failed += 1;
}
print("Starting arangosh with regular terminating script:");
args["javascript.execute-string"] = ";";
print(toArgv(args));
rc = executeExternalAndWait(arangosh, toArgv(args));
var successSuccess = (rc.hasOwnProperty('exit') && rc.exit === 0);
if (!successSuccess) {