enable smoketest on linux

This commit is contained in:
João Moreno
2021-06-11 12:19:17 +02:00
parent 0c6caa8fe3
commit 85a36ae074
12 changed files with 68 additions and 49 deletions

View File

@@ -128,7 +128,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
return connect(connectDriver, child, '', handle, options.logger);
}
const env = process.env;
const env = { ...process.env };
const codePath = options.codePath;
const outPath = codePath ? getBuildOutPath(codePath) : getDevOutPath();
@@ -236,7 +236,7 @@ async function poll<T>(
} else {
lastError = 'Did not pass accept function';
}
} catch (e) {
} catch (e: any) {
lastError = Array.isArray(e.stack) ? e.stack.join(os.EOL) : e.stack;
}