diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-05-28 11:05:02 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-06-01 09:36:24 +1000 |
commit | be7ae0c7326a802bd5a86fe9b73673296399d0ed (patch) | |
tree | f8d774dc172bf45af6a2c6a39cb3b7a5b2f71f63 /python/servo/post_build_commands.py | |
parent | b1a773a15bd2e022aa45c3672e51467e994badfe (diff) | |
download | servo-be7ae0c7326a802bd5a86fe9b73673296399d0ed.tar.gz servo-be7ae0c7326a802bd5a86fe9b73673296399d0ed.zip |
Add jQuery test runner and mach integration.
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r-- | python/servo/post_build_commands.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 385e71ebee7..5105fda0ff1 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -32,44 +32,6 @@ def read_file(filename, if_exists=False): @CommandProvider class MachCommands(CommandBase): - def get_binary_path(self, release, dev): - base_path = path.join("components", "servo", "target") - release_path = path.join(base_path, "release", "servo") - dev_path = path.join(base_path, "debug", "servo") - - # Prefer release if both given - if release and dev: - dev = False - - release_exists = path.exists(release_path) - dev_exists = path.exists(dev_path) - - if not release_exists and not dev_exists: - print("No Servo binary found. Please run './mach build' and try again.") - sys.exit() - - if release and release_exists: - return release_path - - if dev and dev_exists: - return dev_path - - if not dev and not release and release_exists and dev_exists: - print("You have multiple profiles built. Please specify which " - "one to run with '--release' or '--dev'.") - sys.exit() - - if not dev and not release: - if release_exists: - return release_path - else: - return dev_path - - print("The %s profile is not built. Please run './mach build%s' " - "and try again." % ("release" if release else "dev", - " --release" if release else "")) - sys.exit() - @Command('run', description='Run Servo', category='post-build') |