Skip to content

Commit

Permalink
ci 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Halbronn committed May 16, 2024
1 parent 73c64de commit 773d5be
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions packages/test-harness/src/launchNeovimAndRunTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export async function launchNeovimAndRunTests(extensionTestsPath: string) {
// const vscodeExecutablePath = await downloadAndUnzipVSCode(vscodeVersion);
// const [cli, ...args] =
// resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
let cli = getEnvironmentVariableStrict("APP_PATH");
const cli = getEnvironmentVariableStrict("APP_PATH");
// Installed executable: C:\Users\runneradmin\nvim-stable\bin\nvim.exe
cli = cli.replace("nvim.exe", "nvim-qt.exe");
// cli = cli.replace("nvim.exe", "nvim-qt.exe");

// Install extension dependencies
// const extensionInstallArgs = [
Expand Down Expand Up @@ -96,19 +96,21 @@ export async function launchNeovimAndRunTests(extensionTestsPath: string) {
}
},
);

console.log(`Starting nvim for tests...`);
const nvim_process = cp.spawn(cli, [], {
// encoding: "utf-8",
// stdio: "inherit",
env: {
...process.env,
// "NVIM_NODE_HOST_DEBUG": "1",
NVIM_NODE_LOG_FILE: `${getCursorlessRepoRoot()}/packages/cursorless-neovim/out/nvim_node.log`,
NVIM_NODE_LOG_LEVEL: "debug",
CURSORLESS_MODE: "test",
},
});
console.log("init.lua copying done");

const nvim_process = cp.spawn(cli);
// const nvim_process = cp.spawn(cli, [], {
// // encoding: "utf-8",
// // stdio: "inherit",
// env: {
// ...process.env,
// // "NVIM_NODE_HOST_DEBUG": "1",
// NVIM_NODE_LOG_FILE: `${getCursorlessRepoRoot()}/packages/cursorless-neovim/out/nvim_node.log`,
// NVIM_NODE_LOG_LEVEL: "debug",
// CURSORLESS_MODE: "test",
// },
// });
console.log("nvim started done");

// do not wait for nvim to exit to avoid any blocking
nvim_process.unref();
Expand Down

0 comments on commit 773d5be

Please sign in to comment.