Skip to content
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

Killing test runner does not end the automation state #531

Open
muvaf opened this issue Dec 11, 2024 · 0 comments
Open

Killing test runner does not end the automation state #531

muvaf opened this issue Dec 11, 2024 · 0 comments

Comments

@muvaf
Copy link
Contributor

muvaf commented Dec 11, 2024

Describe the bug

When I run ios runwda, if I send SIGTERM with Ctrl+C, I see Killing test runner with pid 387 but the phone is still in automation state, eg overlay that says Automation Running is still in place. When I run the same test in Xcode and click on stop button, it does end the Automation Running state as well.

To Reproduce
Steps to reproduce the behavior:
Run a long-running test, like with the following call:

ios runwda \
  --bundleid="com.somebundle" \
  --testrunnerbundleid="com.somebundle.tests.xctrunner" \
  --xctestconfig=somebundle.xctest

Then send SIGTERM to that command via Ctrl+C. You'll see that it gracefully exits but the phone is still in Automation Running state.

Expected behavior

The phone is back in normal state after shutdown of the test.

Screenshots

Desktop (please complete the following information):

  • OS: macOS 15.1.1
  • Browser: None
  • go-ios version: v1.0.165

Smartphone (please complete the following information):

  • Device: iPhone 14
  • OS: 17.6.1
  • Browser stock safari

Additional context

I run ios tunnel start in a separate tab and all tabs have ENABLE_GO_IOS_AGENT=yes

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

No branches or pull requests

1 participant