mirror of https://gitee.com/bigwinds/arangodb
Please jslint.
This commit is contained in:
parent
d2538cefeb
commit
96c6298a1c
|
@ -552,8 +552,9 @@ function rubyTests (options, ssl) {
|
||||||
var files = fs.list(fs.join("UnitTests","HttpInterface"));
|
var files = fs.list(fs.join("UnitTests","HttpInterface"));
|
||||||
var result = {};
|
var result = {};
|
||||||
var args;
|
var args;
|
||||||
|
var i;
|
||||||
for (i = 0; i < files.length; i++) {
|
for (i = 0; i < files.length; i++) {
|
||||||
n = files[i];
|
var n = files[i];
|
||||||
if (n.substr(0,4) === "api-" && n.substr(-3) === ".rb") {
|
if (n.substr(0,4) === "api-" && n.substr(-3) === ".rb") {
|
||||||
print("Considering",n,"...");
|
print("Considering",n,"...");
|
||||||
if ((n.indexOf("-cluster-") === -1 || options.cluster) &&
|
if ((n.indexOf("-cluster-") === -1 || options.cluster) &&
|
||||||
|
@ -562,8 +563,8 @@ function rubyTests (options, ssl) {
|
||||||
args = ["--color", "-I", fs.join("UnitTests","HttpInterface"),
|
args = ["--color", "-I", fs.join("UnitTests","HttpInterface"),
|
||||||
"--format", "d", "--require", tmpname,
|
"--format", "d", "--require", tmpname,
|
||||||
fs.join("UnitTests","HttpInterface",n)];
|
fs.join("UnitTests","HttpInterface",n)];
|
||||||
pid = executeExternal("rspec", args);
|
var pid = executeExternal("rspec", args);
|
||||||
r = statusExternal(pid, true);
|
var r = statusExternal(pid, true);
|
||||||
result[n] = r.exit;
|
result[n] = r.exit;
|
||||||
if (r.exit !== 0 && !options.force) {
|
if (r.exit !== 0 && !options.force) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue