Attempt to fix the appveyor builds
@@ -77,8 +77,12 @@ if "stable" == parsed.stamp_build and cmd in stamped_commands:
args.extend(["--config", "selenium.rev=unknown", "--config", "selenium.timestamp=unknown"])
elif "detect" == parsed.stamp_build and cmd in stamped_commands:
timestamp = datetime.datetime.utcnow().replace(microsecond=0).isoformat()
+ try:
rev = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip()
args.extend(["--config", "selenium.rev=%s" % rev, "--config", "selenium.timestamp=%s" % timestamp])
+ except subprocess.CalledProcessError, e:
+ print("WARNING: UNABLE TO DETERMINE SELENIUM REVISION. BUILD NOT STAMPED PROPERLY")
+ args.extend(["--config", "selenium.rev=unknown", "--config", "selenium.timestamp=%s" % timestamp])
args.extend(remainder)
