Skip to content

fix(simulator): Boot orphan simulator #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2018
Merged

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Feb 15, 2018

@@ -238,6 +244,15 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
}
}

private isSimulatorAppRunning() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method needs a return type

@@ -238,6 +244,15 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
}
}

private isSimulatorAppRunning() {
try {
const output = childProcess.execSync("ps cax | grep -w Simulator");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can extract the Simulator in a const:

const simulatorAppName = "Simulator";
const output = childProcess.execSync(`ps cax | grep -w ${simulatorAppName}`);
return output.indexOf(simulatorAppName) !== -1;

@Fatme Fatme force-pushed the fatme/fix-orphan-simulator branch from 68fe898 to 919e80a Compare February 16, 2018 09:21
@Fatme Fatme merged commit f5fb57a into master Feb 16, 2018
@Fatme Fatme deleted the fatme/fix-orphan-simulator branch February 16, 2018 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants