[all-commits] [llvm/llvm-project] 03a242: [lldb][test] Handle .categories lookup for inline ...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Fri Dec 6 08:43:35 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 03a242bd41ee49e17f8da96af9787d13e7ea2b93
      https://github.com/llvm/llvm-project/commit/03a242bd41ee49e17f8da96af9787d13e7ea2b93
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2019-12-06 (Fri, 06 Dec 2019)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/test_result.py

  Log Message:
  -----------
  [lldb][test] Handle .categories lookup for inline tests.

Summary:
When creating a test with `lldbinline.MakeInlineTest()`, the reported `inspect.getfile(test.__class__)` is `lldbtest.pyc`, meaning any `.categories` file will be ineffective for those tests. Check for the test_filename first, which inline tests will set.

Additionally, raise an error with the starting dir if `.categories` is not found. This makes the problem more obvious when it occurs: when the test is separated from the test framework tree.

Reviewers: labath, JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71099




More information about the All-commits mailing list