Patchwork [4,of,4] run-tests: use canonpath for with-python3

login
register
mail settings
Submitter timeless@mozdev.org
Date March 28, 2016, 4:03 a.m.
Message ID <03daa91865a67720f75a.1459137797@waste.org>
Download mbox | patch
Permalink /patch/14091/
State Accepted
Headers show

Comments

timeless@mozdev.org - March 28, 2016, 4:03 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1459137727 0
#      Mon Mar 28 04:02:07 2016 +0000
# Node ID 03daa91865a67720f75ae4a595214c02b3299bef
# Parent  7f96bdcef62d5f99417097ee441864298d1e4bd3
run-tests: use canonpath for with-python3
Pierre-Yves David - March 28, 2016, 4:38 a.m.
On 03/27/2016 09:03 PM, timeless wrote:
> # HG changeset patch
> # User timeless <timeless@mozdev.org>
> # Date 1459137727 0
> #      Mon Mar 28 04:02:07 2016 +0000
> # Node ID 03daa91865a67720f75ae4a595214c02b3299bef
> # Parent  7f96bdcef62d5f99417097ee441864298d1e4bd3
> run-tests: use canonpath for with-python3

Nice fixes and cleanup. pushed, Thanks.

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -368,6 +368,7 @@ 
             parser.error('--with-python3 cannot be used when executing with '
                          'Python 3')
 
+        options.with_python3 = canonpath(options.with_python3)
         # Verify Python3 executable is acceptable.
         proc = subprocess.Popen([options.with_python3, b'--version'],
                                 stdout=subprocess.PIPE,