From a5ccebff5ac28a4c2b91c059fe62ebc77477b9f7 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 29 Mar 2016 11:28:45 +0200 Subject: Remove dead code that used to support the legacy reftest framework. --- python/servo/testing_commands.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'python/servo/testing_commands.py') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index b99dd147b9a..6882c82844a 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -56,32 +56,6 @@ class MachCommands(CommandBase): if not hasattr(self.context, "built_tests"): self.context.built_tests = False - def ensure_built_tests(self, release=False): - if self.context.built_tests: - return - returncode = Registrar.dispatch( - 'build-tests', context=self.context, release=release) - if returncode: - sys.exit(returncode) - self.context.built_tests = True - - def find_test(self, prefix, release=False): - build_mode = "release" if release else "debug" - target_contents = os.listdir(path.join( - self.get_target_dir(), build_mode)) - for filename in target_contents: - if filename.startswith(prefix + "-"): - filepath = path.join( - self.get_target_dir(), build_mode, filename) - - if path.isfile(filepath) and os.access(filepath, os.X_OK): - return filepath - - def run_test(self, prefix, args=[], release=False): - t = self.find_test(prefix, release=release) - if t: - return call([t] + args, env=self.build_env()) - @Command('test', description='Run all Servo tests', category='testing') -- cgit v1.2.3