comparison tests/run-tests.py @ 28645:c226e9b69bac

run-tests: use canonpath for with-python3
author timeless <timeless@mozdev.org>
date Mon, 28 Mar 2016 04:02:07 +0000
parents 2e50eb6304bd
children c756b6791760
comparison
equal deleted inserted replaced
28644:2e50eb6304bd 28645:c226e9b69bac
366 if options.with_python3: 366 if options.with_python3:
367 if PYTHON3: 367 if PYTHON3:
368 parser.error('--with-python3 cannot be used when executing with ' 368 parser.error('--with-python3 cannot be used when executing with '
369 'Python 3') 369 'Python 3')
370 370
371 options.with_python3 = canonpath(options.with_python3)
371 # Verify Python3 executable is acceptable. 372 # Verify Python3 executable is acceptable.
372 proc = subprocess.Popen([options.with_python3, b'--version'], 373 proc = subprocess.Popen([options.with_python3, b'--version'],
373 stdout=subprocess.PIPE, 374 stdout=subprocess.PIPE,
374 stderr=subprocess.STDOUT) 375 stderr=subprocess.STDOUT)
375 out, _err = proc.communicate() 376 out, _err = proc.communicate()