diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-08-05 23:55:26 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-08-07 14:30:31 -0700 |
commit | 2ebce54d75e16a35e2abc18abae6e18bbecbf492 (patch) | |
tree | cf065aed6acbde11f08448cdb3ec8d6fc40a27ce /python/servo/testing_commands.py | |
parent | a6369149dc5344b2b80a12fca1c43cf99c94fdc9 (diff) | |
download | servo-2ebce54d75e16a35e2abc18abae6e18bbecbf492.tar.gz servo-2ebce54d75e16a35e2abc18abae6e18bbecbf492.zip |
Remove testing feature from style crate
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 22 |
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) |