Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug 786885 - jetperf script doesnt work on windows;r=aki

  • Loading branch information...
commit 4a98077f9f994ae1ae82b8a6dfab6da254242b54 1 parent b426e4c
Jeff Hammel k0s authored

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. +15 0 configs/jetperf/test_config.py
15 configs/jetperf/test_config.py
... ... @@ -1,4 +1,5 @@
1 1 import os
  2 +import sys
2 3 from datetime import datetime
3 4
4 5 config = {
@@ -15,3 +16,17 @@
15 16 'baseline',
16 17 ],
17 18 }
  19 +
  20 +# need to specify pywin32 location for windows
  21 +# https://bugzilla.mozilla.org/show_bug.cgi?id=786885
  22 +# logic from http://hg.mozilla.org/build/talos/file/1c5976f92643/setup.py
  23 +if os.name == 'nt':
  24 + base_link = "http://superb-sea2.dl.sourceforge.net/project/pywin32/pywin32/Build216/pywin32-216.%s-py%s.exe"
  25 + python_version = '%d.%d' % sys.version_info[0:2]
  26 + if sys.maxsize > 2**32: # is 64bits?
  27 + platform_name = 'win-amd64'
  28 + else:
  29 + platform_name = 'win32'
  30 + config['pywin32_url'] = base_link % (platform_name, python_version)
  31 + config['virtualenv_modules'] = ['pywin32', 'talos', 'mozinstall']
  32 + print 'On windows: %s' % config

Git Notes

Upstream source: https://hg.mozilla.org/build/mozharness/rev/4e2cd8ba1dcf93ad0f279c79f4d219c68876d3fd

0 comments on commit 4a98077

Please sign in to comment.
Something went wrong with that request. Please try again.