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

tell CTest to print on failure for cmark tests #59978

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

QuietMisdreavus
Copy link
Contributor

So that rdar://96543740 can be more easily investigated, this PR updates the build system to print the test log if a cmark test fails, to make the CI console display what went wrong.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

Since cmark tests don't run on regular CI, i'm going to also run a specific preset that does run them:

swiftlang/swift-cmark#45

preset=buildbot_incremental,tools=RA,stdlib=RDA,test=watchOS,type=simulator
@swift-ci Please test with preset macOS

@QuietMisdreavus
Copy link
Contributor Author

swiftlang/swift-cmark#45

preset=buildbot_incremental,tools=RA,stdlib=RDA,test=watchOS,type=simulator
@swift-ci Please test with preset macOS

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@@ -117,7 +117,9 @@ def target_flag(target):
if test_target.startswith("check-swift") and self.args.test_paths:
test_target = test_target + "-custom"

shell.call(cmake_build + target_flag(test_target))
# note that passing variables via test_env won't affect lit tests -
Copy link
Contributor

Choose a reason for hiding this comment

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

I like how readable this comment is.

"CTEST_OUTPUT_ON_FAILURE": "ON"
}

# see the comment in cmake_product.py if you want to copy this code to pass
Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea to add a breadcrumb here while keeping the main message in a single place.

@QuietMisdreavus QuietMisdreavus merged commit 872d4ff into main Jul 12, 2022
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/print-cmark branch July 12, 2022 15:20
hborla pushed a commit to hborla/swift that referenced this pull request Jul 21, 2022
Catfish-Man pushed a commit to Catfish-Man/swift that referenced this pull request Jul 28, 2022
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