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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 5d656b2bc97..efe2b128653 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -47,12 +47,11 @@ class MachCommands(CommandBase):
def find_test(self, prefix):
target_contents = os.listdir(path.join(
- self.context.topdir, "components", "servo", "target", "debug"))
+ self.get_target_dir(), "debug"))
for filename in target_contents:
if filename.startswith(prefix + "-"):
filepath = path.join(
- self.context.topdir, "components", "servo",
- "target", "debug", filename)
+ self.get_target_dir(), "debug", filename)
if path.isfile(filepath) and os.access(filepath, os.X_OK):
return filepath