File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Sources/_InternalTestSupport Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
+ import class Foundation. ProcessInfo
13
14
import Basics
14
15
#if os(macOS)
15
16
import class Foundation. Bundle
@@ -318,6 +319,15 @@ public struct CommandExecutionError: Error {
318
319
public let stderr : String
319
320
}
320
321
322
+
323
+ public func XCTExhibitsGitHubIssue( _ number: Int ) throws {
324
+ let envVar = " SWIFTCI_EXHIBITS_GH_ \( number) "
325
+
326
+ try XCTSkipIf (
327
+ ProcessInfo . processInfo. environment [ envVar] != nil ,
328
+ " https://github.com/swiftlang/swift-package-manager/issues/ \( number) : \( envVar) environment variable is set "
329
+ )
330
+ }
321
331
/// Skips the test if running on a platform which lacks the ability for build tasks to set a working directory due to lack of requisite system API.
322
332
///
323
333
/// Presently, relevant platforms include Amazon Linux 2 and OpenBSD.
Original file line number Diff line number Diff line change @@ -4094,4 +4094,9 @@ class PackageCommandSwiftBuildTests: PackageCommandTestCase {
4094
4094
try XCTSkipOnWindows ( because: " TSCBasic/Path.swift:969: Assertion failed, https://github.com/swiftlang/swift-package-manager/issues/8602 " )
4095
4095
try await super. testCommandPluginTargetBuilds ( )
4096
4096
}
4097
+
4098
+ override func testCommandPluginPermissions( ) async throws {
4099
+ try XCTExhibitsGitHubIssue ( 8782 )
4100
+ try await super. testCommandPluginPermissions ( )
4101
+ }
4097
4102
}
You can’t perform that action at this time.
0 commit comments