aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorTatyana Krasnukha <tatyana@synopsys.com>2019-12-12 15:01:25 +0300
committerTatyana Krasnukha <tatyana@synopsys.com>2020-01-10 17:37:55 +0300
commit3eea082535e232b35e6b2dab45dd81728b2ae7f4 (patch)
tree131a7b0723b95aae2c80ca969d80d628bde54a82 /lldb/packages/Python/lldbsuite/test/dotest.py
parente20a3b9b6c028ef3fea92ddb19e98db45e3d0509 (diff)
downloadllvm-3eea082535e232b35e6b2dab45dd81728b2ae7f4.zip
llvm-3eea082535e232b35e6b2dab45dd81728b2ae7f4.tar.gz
llvm-3eea082535e232b35e6b2dab45dd81728b2ae7f4.tar.bz2
[lldb][tests] Make it possible to expect failure for a whole category
There already are decorators and "--excluded" option to mark test-cases/files as expected to fail. However, when a new test file is added and it which relates to a feature that a target doesn't support, this requires either adding decorators to that file or modifying the file provided as "--excluded" option value. The purpose of this patch is to avoid any modifications in such cases. E.g. if a target doesn't support "watchpoints" and passes "--xfail-category watchpoint" to dotest, a testing job will not fail after a new watchpoint-related test file is added. Differential Revision: https://reviews.llvm.org/D71906
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index e3f2048..4660055 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -330,6 +330,10 @@ def parseOptionsAndInitTestdirs():
configuration.skip_categories += test_categories.validate(
args.skip_categories, False)
+ if args.xfail_categories:
+ configuration.xfail_categories += test_categories.validate(
+ args.xfail_categories, False)
+
if args.E:
os.environ['CFLAGS_EXTRAS'] = args.E