This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Capture the current environment in the new test format
AbandonedPublic

Authored by broadwaylamb on Apr 5 2020, 6:42 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Summary

In the old test format we set the test execution environment to the current process environment (see https://github.com/llvm/llvm-project/blob/9e1455dc236252a60066c312c6d2e8a7ed66f609/libcxx/utils/libcxx/test/format.py#L179) for .sh.cpp tests.

In the new test format, where all tests are essentially ShTests, we should do the same. Otherwise executing tests over SSH may not work, at least on Windows hosts. For example, for me all SSH commands ended up exiting with code 255 without any error messages. After this change they succeed.

Diff Detail

Event Timeline

broadwaylamb created this revision.Apr 5 2020, 6:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2020, 6:42 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne requested changes to this revision.Apr 6 2020, 6:46 AM
ldionne added inline comments.
libcxx/utils/libcxx/test/newformat.py
243

Yup, so I've been having to add the same workaround locally in some cases for ssh-agent environment variables to be picked up. However, I'm not certain this is the right place to set that, I think it should be in config.py instead.

This revision now requires changes to proceed.Apr 6 2020, 6:46 AM
broadwaylamb abandoned this revision.Apr 6 2020, 10:52 AM