mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
fix(testrun): point the device java preflight hint at the ios-device doctor
This commit is contained in:
1 parent
bbab168b8e
commit
a203302b00
2 files changed
+24
-2
No files matched your search
@@ -56,11 +56,17 @@ func runPreflight(ctx context.Context, platform string, check preflightFunc) err
|
||||
// know a run targets a physical iOS device. Android already requires java in
|
||||
// the top-level Preflight, so this only matters for ios.
|
||||
func preflightDevice(platform string) error {
|
||||
return runPreflightDevice(platform, preflightCheck)
|
||||
}
|
||||
|
||||
func runPreflightDevice(platform string, check preflightFunc) error {
|
||||
if platform != "ios" {
|
||||
return nil
|
||||
}
|
||||
if err := preflightCheck("java"); err != nil {
|
||||
return preflightFailure("ios", err)
|
||||
if err := check("java"); err != nil {
|
||||
// The doctor splits simulator and device checks: java lives under the
|
||||
// ios-device platform, so the hint must point there.
|
||||
return preflightFailure("ios-device", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user