aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-03-29 11:28:45 +0200
committerMs2ger <Ms2ger@gmail.com>2016-03-29 11:28:45 +0200
commita5ccebff5ac28a4c2b91c059fe62ebc77477b9f7 (patch)
treed575fdbd227bd3418825f9d55df1abb36ac9e182 /python/servo/testing_commands.py
parentaac2da75f40f4c55a4b450b6d9d134429fcf741e (diff)
downloadservo-a5ccebff5ac28a4c2b91c059fe62ebc77477b9f7.tar.gz
servo-a5ccebff5ac28a4c2b91c059fe62ebc77477b9f7.zip
Remove dead code that used to support the legacy reftest framework.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py26
1 files changed, 0 insertions, 26 deletions
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')