Skip to content

[Incremental] Add a check of the result of running the built app to the IncrementalTestFramework #540

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

Merged
merged 2 commits into from
Mar 15, 2021

Conversation

davidungar
Copy link
Contributor

Allow a test to specify an expectation for the stdout, stderr, and error codes. Add such a check to two of the tests.

@davidungar davidungar requested a review from CodaFi March 14, 2021 06:26
@davidungar
Copy link
Contributor Author

@swift-ci please test

}

func run(step: Step, in context: Context) throws -> ProcessResult? {
let proc = Process(arguments: [context.executablePath(for: self).pathString],
Copy link
Contributor

Choose a reason for hiding this comment

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

/Users/buildnode/jenkins/workspace/pr-swift-driver-macos/branch-main/swift-driver/Tests/IncrementalTestFramework/Module.swift:212:16: error: 'init(arguments:environment:workingDirectory:outputRedirection:verbose:startNewProcessGroup:)' is only available in macOS 10.15 or newer
10:34:10     let proc = Process(arguments: [context.executablePath(for: self).pathString],
10:34:10                ^
10:34:10 /Users/buildnode/jenkins/workspace/pr-swift-driver-macos/branch-main/swift-driver/Tests/IncrementalTestFramework/Module.swift:212:16: note: add 'if #available' version check
10:34:10     let proc = Process(arguments: [context.executablePath(for: self).pathString],
10:34:10                ^
10:34:10 /Users/buildnode/jenkins/workspace/pr-swift-driver-macos/branch-main/swift-driver/Tests/IncrementalTestFramework/Module.swift:211:8: note: add @available attribute to enclosing instance method
10:34:10   func run(step: Step, in context: Context) throws -> ProcessResult? {

@davidungar
Copy link
Contributor Author

@swift-ci please test

@davidungar davidungar merged commit b7aea48 into swiftlang:main Mar 15, 2021
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

Successfully merging this pull request may close these issues.

2 participants