Bug 1032114 - TPS fails to decode Windows file paths in config file. r=hskupin a=testonly DONTBUILD
authorCosmin Malutan <cosmin.malutan@softvision.ro>
Mon, 30 Jun 2014 16:16:17 +0200
changeset 191456 606848e8adfc4993ee9ed70bee27a439ad556561
parent 191455 3b46de297f3f5a3beda7df16c4cf8c511b4d99e9
child 191494 5f998c527a672e0f28ce60b4e9b10b4ffb37daa8
push id27050
push userhskupin@mozilla.com
push dateMon, 30 Jun 2014 14:17:54 +0000
treeherdermozilla-central@606848e8adfc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershskupin, testonly
bugs1032114
milestone33.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 1032114 - TPS fails to decode Windows file paths in config file. r=hskupin a=testonly DONTBUILD
testing/tps/create_venv.py
--- a/testing/tps/create_venv.py
+++ b/testing/tps/create_venv.py
@@ -116,17 +116,18 @@ def main():
         testdir = os.path.join(here, 'tests')
         extdir = os.path.join(here, 'extensions')
 
     assert(os.path.exists(testdir))
     assert(os.path.exists(extdir))
 
     # Update config file
     config_in_path = os.path.join(here, 'config', 'config.json.in')
-    replacements = {'__TESTDIR__': testdir, '__EXTENSIONDIR__': extdir}
+    replacements = {'__TESTDIR__': testdir.replace('\\','/'),
+                    '__EXTENSIONDIR__': extdir.replace('\\','/')}
     if options.username and options.password:
         replacements.update({
             '__FX_ACCOUNT_USERNAME__': options.username,
             '__FX_ACCOUNT_PASSWORD__': options.password})
     else:
         print 'Firefox Account credentials not specified. Please update the ' \
               'config file manually.'