[dotest] Make --test-subdir work with --no-multiprocess
authorVedant Kumar <vsk@apple.com>
Thu, 16 Aug 2018 19:56:38 +0000 (19:56 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 16 Aug 2018 19:56:38 +0000 (19:56 +0000)
commit33ed57eebd408a5345b61c4075b730e990b70e62
tree2c8db57be7eb82cfb0eaff53aaebca8f03e7b6eb
parent998373c0595288d813648200f984b03f82645413
[dotest] Make --test-subdir work with --no-multiprocess

The single-process test runner is invoked in a number of different
scenarios, including when multiple test dirs are specified or (afaict)
when lit is used to drive the test suite.

Unfortunately the --test-subdir option did not work with the single
process test runner, breaking an important use case (using lit to run
swift-lldb Linux tests):

  Failure URL: https://ci.swift.org/job/swift-PR-Linux/6841

We won't be able to run lldb tests within swift PR testing without
filtering down the set of tests.

This change makes --test-subdir work with the single-process runner.

llvm-svn: 339929
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/dosep.py
lldb/packages/Python/lldbsuite/test/dotest.py