aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorGlenn Watson <github@intuitionlibrary.com>2016-09-23 08:39:16 +1000
committerGlenn Watson <github@intuitionlibrary.com>2016-09-28 11:57:33 +1000
commitcdb69d442317e5ba57d571913007ae258879afc1 (patch)
tree3894cf3fefa344ca0b60054f03bccaa1de280df6 /python/servo/post_build_commands.py
parent06bb57bdcb7eb60ffe4058ced7301a5f285eede5 (diff)
downloadservo-cdb69d442317e5ba57d571913007ae258879afc1.tar.gz
servo-cdb69d442317e5ba57d571913007ae258879afc1.zip
Add OSMesa headless mode, run WPT against Webrender, update tests.
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 733ec665cd6..5f40683e19c 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -9,7 +9,6 @@
from __future__ import print_function, unicode_literals
-from glob import glob
import os
import os.path as path
import subprocess
@@ -23,7 +22,7 @@ from mach.decorators import (
Command,
)
-from servo.command_base import CommandBase, cd, call, check_call, is_windows, is_macosx
+from servo.command_base import CommandBase, call, check_call, find_dep_path_newest, is_windows, is_macosx
def read_file(filename, if_exists=False):
@@ -33,18 +32,6 @@ def read_file(filename, if_exists=False):
return f.read()
-def find_dep_path_newest(package, bin_path):
- deps_path = path.join(path.split(bin_path)[0], "build")
- with cd(deps_path):
- print(os.getcwd())
- candidates = glob(package + '-*')
- candidates = (path.join(deps_path, c) for c in candidates)
- candidate_times = sorted(((path.getmtime(c), c) for c in candidates), reverse=True)
- if len(candidate_times) > 0:
- return candidate_times[0][1]
- return None
-
-
@CommandProvider
class PostBuildCommands(CommandBase):
@Command('run',