aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-17 19:42:10 -0700
committerGitHub <noreply@github.com>2016-07-17 19:42:10 -0700
commitf5c60e8c5aec34a1a6ff6c61f1174a7c93158159 (patch)
tree42586ee8850d4062d32ff3ca965486b0bce625c3 /python/servo
parente7a55ae55ee0091095b8a460b3088440f352dd2e (diff)
parent1fc05dd7e69c7c6b51713ff9e1a047d51de22c0a (diff)
downloadservo-f5c60e8c5aec34a1a6ff6c61f1174a7c93158159.tar.gz
servo-f5c60e8c5aec34a1a6ff6c61f1174a7c93158159.zip
Auto merge of #12484 - aravind-pg:mach, r=ConnorGBrewster
Temporary fix for mach test-{wpt, css} issue with wonky paths This is just a temporary fix to get `mach test-wpt`, `mach update-manifest` etc. working properly again. A proper fix will likely involve a proper refactoring of the `suite_for_test` function. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12481 - [X] These changes have been tested to work locally r? @ConnorGBrewster cc @jdm <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12484) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 10e79bf1aa0..b4c045d4a70 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -354,7 +354,7 @@ class MachCommands(CommandBase):
all_handled = True
for test_path in requested_paths:
suite = self.suite_for_path(test_path)
- if correct_suite != suite:
+ if suite is not None and correct_suite != suite:
all_handled = False
print("Warning: %s is not a %s test. Delegating to test-%s." % (test_path, correct_suite, suite))
if all_handled: