This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Use @skipIfWindows for PExpectTest
ClosedPublic

Authored by rupprecht on Aug 27 2020, 3:47 PM.

Details

Summary

Annotating PExpectTest with @skipIfWindows instead of marking it as an empty class will make the test runner recognize it as a test class, which should allow me to reland adb5c23f8c0d60eeec41dcbe21d1b26184e1c97d.

I don't have a windows machine to verify this works, but I did some tests using @skipIfLinux and they all worked as expected. In case the pexpect import is not at all available on windows, I moved it to within the method where it's used.

Diff Detail

Event Timeline

rupprecht created this revision.Aug 27 2020, 3:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 27 2020, 3:47 PM
rupprecht requested review of this revision.Aug 27 2020, 3:47 PM
labath accepted this revision.Aug 28 2020, 12:43 AM
labath added a subscriber: labath.

This looks like it could work, though only barely. @skipIfWindows checks for target system, but we would really need this to check the host OS (for remote testing, although I don't know if anyone does that on windows these days). However, in conjuction with @skipIfRemote it should do the right thing. In any case, this is small enough a change to try it out. Just be sure to check the windows bot afterwards.

This revision is now accepted and ready to land.Aug 28 2020, 12:43 AM
This revision was automatically updated to reflect the committed changes.