-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Conversation
@swift-ci Please smoke test |
Since cmark tests don't run on regular CI, i'm going to also run a specific preset that does run them: preset=buildbot_incremental,tools=RA,stdlib=RDA,test=watchOS,type=simulator |
preset=buildbot_incremental,tools=RA,stdlib=RDA,test=watchOS,type=simulator |
@swift-ci Please smoke test |
@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 - |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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.