Bug 1528374 - Convert binary argument to absolute path in profileserver.py r=firefox-build-system-reviewers,mshal
authorChris Manchester <cmanchester@mozilla.com>
Wed, 20 Feb 2019 14:36:35 +0000
changeset 524209 bf12f5e8abad80fb70429ae2b5872d925418b42c
parent 524208 91c5e49bc1cb48aed2aef4bec3c013c9a224a83f
child 524210 d1d79a31013760bf2dddd8d53d5b380a14fac8a3
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, mshal
bugs1528374
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1528374 - Convert binary argument to absolute path in profileserver.py r=firefox-build-system-reviewers,mshal Differential Revision: https://phabricator.services.mozilla.com/D20407
build/pgo/profileserver.py
--- a/build/pgo/profileserver.py
+++ b/build/pgo/profileserver.py
@@ -29,16 +29,17 @@ if __name__ == '__main__':
     debug_args, interactive = cli.debugger_arguments()
     runner_args = cli.runner_args()
 
     build = MozbuildObject.from_environment()
 
     binary = runner_args.get('binary')
     if not binary:
         binary = build.get_binary_path(where="staged-package")
+    binary = os.path.normpath(os.path.abspath(binary))
 
     path_mappings = {
         k: os.path.join(build.topsrcdir, v)
         for k, v in PATH_MAPPINGS.items()
     }
     httpd = MozHttpd(port=PORT,
                      docroot=os.path.join(build.topsrcdir, "build", "pgo"),
                      path_mappings=path_mappings)