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

Unified Diff: tools/bots/set_reference_build_revision.py

Issue 169183004: Move Dartium reference build scripts to dartium_tools/perf (Closed) Base URL: svn://svn.chromium.org/chrome/branches/dart/1750/src
Patch Set: Move files to dart/tools/bots instead. Created 6 years, 10 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
« no previous file with comments | « tools/bots/get_chromium_build.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/set_reference_build_revision.py
diff --git a/tools/bots/set_reference_build_revision.py b/tools/bots/set_reference_build_revision.py
new file mode 100755
index 0000000000000000000000000000000000000000..d03bb177a695e33120df1d7b1b170a0ea4e4f54e
--- /dev/null
+++ b/tools/bots/set_reference_build_revision.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+#
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Writes a revision number into src/chrome/tools/test/reference_build/REVISON
+ Must be run from the root of a Dartium or multivm checkout.
+
+Usage:
+ $ ./src/dart/tools/bots/set_reference_build_revision.py <revision>
+"""
+
+import os
+import sys
+
+def main(argv):
+ revision = argv[1]
+ output = os.path.join('src', 'chrome', 'tools',
+ 'test', 'reference_build',
+ 'REQUESTED_REVISION')
+ dirname = os.path.dirname(output)
+ if dirname and not os.path.exists(dirname):
+ os.makedirs(dirname)
+ with file(output, 'w') as f:
+ f.write(revision)
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv))
« no previous file with comments | « tools/bots/get_chromium_build.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698