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

Unified Diff: tools/bots/linux_distribution_support.py

Issue 252583010: Validata that we are on the correct platform when creating linux distrubution packages (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/linux_distribution_support.py
===================================================================
--- tools/bots/linux_distribution_support.py (revision 35364)
+++ tools/bots/linux_distribution_support.py (working copy)
@@ -68,6 +68,23 @@
tarfilename = 'dart-%s.tar.gz' % version
tarfile = os.path.join(builddir, tarfilename)
+ with bot.BuildStep('Validating linux system'):
+ print 'Validating that we are on %s' % build_info.builder_tag
+ args = ['uname', '-a']
+ (stdout, stderr, exitcode) = bot_utils.run(args)
+ if exitcode != 0:
+ print "Could not find linux system, exiting"
+ sys.exit(1)
+
+ if build_info.builder_tag == "debian_wheezy":
+ if not "Debian" in stdout:
+ print "Trying to build debian bits on a non debian system"
+ sys.exit(1)
+ if build_info.builder_tag == "ubuntu_precise":
+ if not "Ubuntu" in stdout:
+ print "Trying to build ubuntu bits on a non ubuntu system"
+ sys.exit(1)
+
with bot.BuildStep('Create src tarball'):
args = [sys.executable, './tools/create_tarball.py', '--tar_filename',
tarfile]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698