mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
[tests] Accept XFAIL arguments that match any part of a feature.
llvm-svn: 174469
This commit is contained in:
@@ -21,9 +21,10 @@ def isExpectedFail(test, xfails):
|
||||
if item == '*':
|
||||
return True
|
||||
|
||||
# If this is an exact match for one of the features, it fails.
|
||||
if item in test.config.available_features:
|
||||
return True
|
||||
# If this is a part of any of the features, it fails.
|
||||
for feature in test.config.available_features:
|
||||
if item in feature:
|
||||
return True
|
||||
|
||||
# If this is a part of the target triple, it fails.
|
||||
if item in test.suite.config.target_triple:
|
||||
|
||||
Reference in New Issue
Block a user