From d9def18184a0e6c5cfd1058abbde71122d2b6567 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 24 Jun 2019 15:00:51 +0200 Subject: [PATCH] adjust path to register script for pip installation --- src/rest/creator.js | 6 +++--- start.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rest/creator.js b/src/rest/creator.js index 2c15bae792..5897ae2683 100644 --- a/src/rest/creator.js +++ b/src/rest/creator.js @@ -59,12 +59,12 @@ module.exports = class RestSessionCreator { '--no-admin', this.hsUrl ]; - const registerCmd = `./scripts/register_new_matrix_user ${registerArgs.join(' ')}`; + const registerCmd = `./register_new_matrix_user ${registerArgs.join(' ')}`; const allCmds = [ `cd ${this.synapseSubdir}`, - ". env/bin/activate", + ". activate", registerCmd - ].join('&&'); + ].join(' && '); await execAsync(allCmds, {cwd: this.cwd, encoding: 'utf-8'}); } diff --git a/start.js b/start.js index b98dc7f366..d19b232236 100644 --- a/start.js +++ b/start.js @@ -52,7 +52,7 @@ async function runTests() { } const restCreator = new RestSessionCreator( - 'synapse/installations/consent', + 'synapse/installations/consent/env/bin', hsUrl, __dirname );