aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 2d4df90755b..8f17aa149b9 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -257,12 +257,6 @@ class MachCommands(CommandBase):
packages.discard('stylo')
- has_style = True
- try:
- packages.remove('style')
- except KeyError:
- has_style = False
-
env = self.build_env()
env["RUST_BACKTRACE"] = "1"
@@ -290,20 +284,6 @@ class MachCommands(CommandBase):
if err is not 0:
return err
- # Run style tests with the testing feature
- if has_style:
- args = ["cargo", "bench" if bench else "test", "-p", "style_tests", "--features"]
- if features:
- args += ["%s" % ' '.join(features + ["testing"])]
- else:
- args += ["testing"]
-
- args += test_patterns
-
- if nocapture:
- args += ["--", "--nocapture"]
- return call(args, env=env, cwd=self.servo_crate())
-
@Command('test-stylo',
description='Run stylo unit tests',
category='testing')
@@ -319,7 +299,7 @@ class MachCommands(CommandBase):
env["RUST_BACKTRACE"] = "1"
env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8")
- args = (["cargo", "test", "-p", "stylo_tests", "--features", "testing"] +
+ args = (["cargo", "test", "-p", "stylo_tests"] +
(["--release"] if release else []) + (test_name or []))
with cd(path.join("ports", "geckolib")):
return call(args, env=env)