From 082a52f724f9b06c84fcd3b7f89f17708b8e65b7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 11 Jun 2024 15:27:34 +0200 Subject: [PATCH] fix installing foundry --- apps/remix-ide-e2e/src/tests/remixd.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index 22b54e1016..0541150794 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/apps/remix-ide-e2e/src/tests/remixd.test.ts @@ -373,6 +373,7 @@ async function downloadFoundry(): Promise { console.log(data.toString()) if ( data.toString().includes("simply run 'foundryup' to install Foundry") + || data.toString().includes("foundryup: could not detect shell, manually add") ) { console.log('resolving') resolve() @@ -391,7 +392,7 @@ async function downloadFoundry(): Promise { async function installFoundry(): Promise { console.log('installFoundry', process.cwd()) try { - const server = spawn('foundryup', [], { cwd: process.cwd(), shell: true, detached: true }) + const server = spawn('export PATH="' + homedir() + '/.foundry/bin:$PATH" && foundryup', [], { cwd: process.cwd(), shell: true, detached: true }) return new Promise((resolve, reject) => { server.stdout.on('data', function (data) { console.log(data.toString())