[Lldb-commits] [PATCH] D77452: [intel-pt] Improve the way the test determines whether to run
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 14 02:05:10 PDT 2020
labath added a comment.
Heh.. I wasn't an attempt expecting a fully generic solution. Since we don't invoke dotest.py manually these days (we have lldb-dotest for that) making a separate argument specifically for this plugin would be just fine. However, I don't see anything inherently wrong with this generic approach, so I guess we can leave it. The main think I don't like is the introduction of the skipping code into the base test class. These classes are already more complicated than they ought to be, so I'd like to avoid adding things to them, if those things can be implemented elsewhere.
Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:736-738
+ if self.plugin and self.plugin not in configuration.enabled_plugins:
+ self.skipTest("The '" + self.plugin + "' plugin is not enabled")
Let's put this stuff in `TestIntelPTSimpleBinary` for now -- it can be moved into a separate base class (along with other common code) once we have more of these tests.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the lldb-commits