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 207536 5d619b544f5a6b0e0045bcb0bf3bf5a40c9fe19b
parent 207535 dd61b50b2bcfd6838c33e71728ef9a1476ec3704
child 207537 c96dec196ae61cbf527e9f32b9bb43955106ba96
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershskupin, testonly
bugs1032114
milestone32.0a2
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.'