From 111fd904989953713b313fbc8504e26b4fa75612 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:42:48 +1100 Subject: [PATCH] Use absolute path for binary when checking for existence --- tests/integration/hardhatprocess.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/hardhatprocess.nim b/tests/integration/hardhatprocess.nim index 4eb2267a..c789a55e 100644 --- a/tests/integration/hardhatprocess.nim +++ b/tests/integration/hardhatprocess.nim @@ -62,10 +62,10 @@ method start*(node: HardhatProcess) {.async.} = logScope: nodeName = node.name - if not fileExists(node.executable): + let binary = absolutePath(node.workingDir / node.executable) + if not fileExists(binary): raiseAssert "cannot start hardhat, binary doesn't exist (looking for " & - &"{absolutePath(node.workingDir / node.executable)}). Try running " & - &"`npm install` in {node.workingDir}." + &"{binary}). Try running `npm install` in {node.workingDir}." let poptions = node.processOptions + {AsyncProcessOption.StdErrToStdOut} trace "starting node",