Skip to content

Commit

Permalink
Update for Windows e2e tests (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegeris authored Jul 18, 2024
2 parents a055e66 + 507fac8 commit ea00fc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli-test/src/cli/commands/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ export default {
return new Promise((resolve, reject) => {
// kill the shell process
shell.kill(proc).then(() => {

// Due to the complexity of gracefully shutting down processes on Windows / lack of interrupt signal support,
// we don't wait for the SLACK_TRACE_PLATFORM_RUN_STOP trace on Windows
if (process.platform === "win32") {
resolve();
}

if (teamName) {
// TODO: this is messed up. does not match to parameter name at all - team name has nothing to do with this.
// Check if local app was deleted automatically, if --cleanup was passed to `runStart`
Expand Down
3 changes: 3 additions & 0 deletions packages/cli-test/src/cli/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ export const shell = {
},
assembleShellEnv: function assembleShellEnv(): Record<string, string | undefined> {
const spawnedEnv = { ...process.env };
if (process.platform === "win32"){
spawnedEnv.PATH = process.env.PATH;
}
// Always enable test trace output
spawnedEnv.SLACK_TEST_TRACE = 'true';
// Skip prompts for AAA request and directly send a request
Expand Down

0 comments on commit ea00fc6

Please sign in to comment.