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 200703 4098e00458ca1e178dc6e32c461b0e7a7eaabb8a
parent 200702 a2a5087e5a6ad4935cf7058cfae0f0f318585f39
child 200704 f95da240e806c8d0ae923008dbb413eff397abb5
push id486
push userasasaki@mozilla.com
push dateMon, 14 Jul 2014 18:39:42 +0000
treeherdermozilla-release@d33428174ff1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershskupin, testonly
bugs1032114
milestone31.0
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.'