mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
UT: Set the cwd for the servers.
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
// Configuration for unit tests
|
||||
//
|
||||
|
||||
var path = require("path");
|
||||
|
||||
// Where to find the binary.
|
||||
exports.newcoind = "./newcoind";
|
||||
exports.newcoind = path.join(process.cwd(), "newcoind");
|
||||
|
||||
// Configuration for servers.
|
||||
exports.servers = {
|
||||
|
||||
@@ -30,7 +30,6 @@ var configContent = function(name) {
|
||||
|
||||
var configPath = function(name) {
|
||||
return path.join(serverPath(name), "newcoind.cfg");
|
||||
|
||||
};
|
||||
|
||||
// Write a server's newcoind.cfg.
|
||||
@@ -44,11 +43,12 @@ var serverSpawnSync = function(name) {
|
||||
config.newcoind,
|
||||
[
|
||||
"-a",
|
||||
"--conf=" + configPath(name)
|
||||
"--conf=newcoind.cfg"
|
||||
],
|
||||
{
|
||||
env : process.env,
|
||||
stdio : 'inherit'
|
||||
cwd: serverPath(name),
|
||||
env: process.env,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
|
||||
servers[name] = server;
|
||||
|
||||
Reference in New Issue
Block a user