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

Don't suppress exit codes Appium driver install #27024

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Jan 9, 2025

Description of Change

For some reason the exit codes were reset on the appium driver doctor calls. If the drivers are not installed correctly, the tests will fail so we want to fail early and not let the whole pipeline go through when this happens.

This PR removes the suppressing of the exit codes for these calls so that the pipeline should fail whenever the one of the drivers fails to install.

Additionally, this PR makes changes in how the JAVA_HOME variable is set. For macOS, this step always seemed to fail as can be seen here

image

This needed to be fixed so that the appium driver doctor calls do not report the unset JAVA_HOME variable as an error.

Issues Fixed

Fixes #27013

@jfversluis jfversluis added the area-testing Unit tests, device tests label Jan 9, 2025
@jfversluis jfversluis added this to the .NET 9 SR3 milestone Jan 9, 2025
@jfversluis jfversluis requested review from PureWeen and Copilot January 9, 2025 09:16
@jfversluis jfversluis requested a review from a team as a code owner January 9, 2025 09:16
@jfversluis jfversluis requested a review from tj-devel709 January 9, 2025 09:16

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • eng/scripts/appium-install.ps1: Language not supported
@jfversluis jfversluis requested a review from rmarinho January 9, 2025 10:06
@jfversluis jfversluis marked this pull request as draft January 9, 2025 10:21
@jfversluis jfversluis marked this pull request as ready for review January 9, 2025 10:42
@jfversluis jfversluis enabled auto-merge (squash) January 10, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Testing] If an appium driver isn't installed make the tests fail faster
2 participants