Skip to content

Commit

Permalink
Merge branch 'autotest' into autotest-post_install_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio-ESP committed Oct 24, 2024
2 parents 481d02a + 29cb2ba commit 9ddc3c2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/script/IDFTestRunner.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ export class IDFTestRunner {
return new Promise((resolve, reject) => {
logger.debug("Starting terminal...");
const command =
os.platform() !== "win32"
? "bash"
: "powershell.exe";
const args =
os.platform() !== "win32" ? "bash" : "powershell.exe";
const args =
os.platform() !== "win32"
? []
: ["-ExecutionPolicy","Bypass","-NoProfile"];
logger.debug(`Sending command>>${command}<< with args >>${args}<<`)
: ["-ExecutionPolicy", "Bypass", "-NoProfile"];
logger.debug(`Sending command>>${command}<< with args >>${args}<<`);
this.process = pty.spawn(command, args, {
name: "eim-terminal",
cols: 80,
Expand All @@ -35,7 +33,7 @@ export class IDFTestRunner {
os.platform() !== "win32"
? `source ${this.LoadScriptPath}`
: `. "${this.LoadScriptPath}"`;
logger.debug(`Script load command sent to terminal ${loadCommand}`)
logger.debug(`Script load command sent to terminal ${loadCommand}`);
this.sendInput(`${loadCommand}\r`);
this.exited = false;

Expand Down

0 comments on commit 9ddc3c2

Please sign in to comment.