This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Print the failing commands in Configuration{Compilation,Runtime}Error
ClosedPublic

Authored by mstorsjo on Mar 10 2023, 9:13 AM.

Details

Summary

This allows for easier debugging of the test environment when something
fails.

Diff Detail

Event Timeline

mstorsjo created this revision.Mar 10 2023, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 9:13 AM
Herald added a subscriber: arichardson. · View Herald Transcript
mstorsjo requested review of this revision.Mar 10 2023, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 9:13 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

FYI, this is useful for diagnosing issues like the one fixed by D147630.

ldionne accepted this revision.Apr 26 2023, 3:21 PM

That's a nice improvement, thanks! I remember making a similar change locally to debug something, that should have been a hint that this was useful :-)

libcxx/utils/libcxx/test/dsl.py
233

We can do better here. Let's do something like:

raise ConfigurationRuntimeError("Failed to run command: {}\nstderr is:\n{}", ...)
288
This revision is now accepted and ready to land.Apr 26 2023, 3:21 PM
This revision was landed with ongoing or failed builds.Apr 27 2023, 9:27 AM
This revision was automatically updated to reflect the committed changes.
ldionne added inline comments.May 10 2023, 2:44 PM
libcxx/utils/libcxx/test/dsl.py
233

@mstorsjo It looks like this comment and the one below were not addressed before landing, do you think you could have a look?

mstorsjo added inline comments.May 10 2023, 3:47 PM
libcxx/utils/libcxx/test/dsl.py
233

Oh, you're absolutely right - I'm sorry about that! I'll make sure to follow up on this soon.