Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: infra/bots/recipes/swarm_perf.py

Issue 2415193002: Add infra_tests.py, recipe, buildbotless bot (Closed)
Patch Set: Fixes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: infra/bots/recipes/swarm_perf.py
diff --git a/infra/bots/recipes/swarm_perf.py b/infra/bots/recipes/swarm_perf.py
index d20704a112460a6e840bd44df82267779c00e458..b324917793e90b3203ad1c3df8ebdd121739d521 100644
--- a/infra/bots/recipes/swarm_perf.py
+++ b/infra/bots/recipes/swarm_perf.py
@@ -44,7 +44,7 @@ TEST_BUILDERS = {
}
-import time
+import calendar
def nanobench_flags(bot):
@@ -209,7 +209,7 @@ def perf_steps(api):
if api.vars.upload_perf_results:
now = api.time.utcnow()
- ts = int(time.mktime(now.utctimetuple()))
+ ts = int(calendar.timegm(now.utctimetuple()))
json_path = api.flavor.device_path_join(
api.flavor.device_dirs.perf_data_dir,
'nanobench_%s_%d.json' % (api.vars.got_revision, ts))

Powered by Google App Engine
This is Rietveld 408576698