From b0dc2258f6a7e1f09014c205e37f4f63d651eab0 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Wed, 23 Oct 2024 09:11:36 -0700 Subject: [PATCH] [android] don't build test summary harness code for android target when building tests for an Android target, SPM creates a test summary harness file as well. This file relies on test outpath that exists on the host machine, but not on the android device on which the test is actually running. Therefore, lets disable test observation for Android. --- Sources/SPMBuildCore/BuildParameters/BuildParameters.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SPMBuildCore/BuildParameters/BuildParameters.swift b/Sources/SPMBuildCore/BuildParameters/BuildParameters.swift index de2dffc699b..c3501570152 100644 --- a/Sources/SPMBuildCore/BuildParameters/BuildParameters.swift +++ b/Sources/SPMBuildCore/BuildParameters/BuildParameters.swift @@ -349,7 +349,7 @@ private struct _Toolchain: Encodable { extension Triple { public var supportsTestSummary: Bool { - return !self.isWindows() + return !self.isWindows() && !self.isAndroid() } }