SOme ground work to support Windows for benchmark farm

Mainly straightforward changes, the only tricky part: detect number of CPU
sockets. Didn't figure out yet how to do this on Windows.
This commit is contained in:
2017-08-28 15:05:04 +02:00
parent 4bed7a3f8a
commit 3c3c8cbaad
4 changed files with 17 additions and 2 deletions

View File

@@ -169,8 +169,8 @@ def downloadLatestBlender(directory):
"""
Download latets Blender from buildbot to given directory.
"""
# TODO(sergey): This we need to change to currently running configuration.
latest_blender_url = buildbot.buildbotGetLatetsVersion("Linux", "64bit")
platform = sys.platform
latest_blender_url = buildbot.buildbotGetLatetsVersion(platform, "64bit")
if not latest_blender_url:
logger.ERROR("Unable to figure out latest Blender version")
return
@@ -203,6 +203,8 @@ def findBlenderInDirectory(directory):
platform = sys.platform
if platform == 'linux':
return os.path.join(blender_dir, "blender")
elif platform == "win32":
return os.path.join(blender_dir, "blender.exe")
else:
raise Exception("Need to support your OS!")