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

Unified Diff: tools/bots/linux_distribution_support.py

Issue 253273004: Change the way we determine if we are on the correct platform when doing debian 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 35568)
+++ tools/bots/linux_distribution_support.py (working copy)
@@ -70,18 +70,18 @@
with bot.BuildStep('Validating linux system'):
print 'Validating that we are on %s' % build_info.builder_tag
- args = ['uname', '-a']
+ args = ['cat', '/etc/os-release']
(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:
+ if not "wheezy" 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:
+ if not "precise" in stdout:
print "Trying to build ubuntu bits on a non ubuntu system"
sys.exit(1)
@@ -99,10 +99,10 @@
with bot.BuildStep('Upload artifacts'):
bot_name, _ = bot.GetBotName()
channel = bot_utils.GetChannelFromName(bot_name)
- if channel != bot_utils.Channel.BLEEDING_EDGE:
- ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
- else:
- print 'Not uploading artifacts on bleeding edge'
+# if channel != bot_utils.Channel.BLEEDING_EDGE:
+ ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
+# else:
+# print 'Not uploading artifacts on bleeding edge'
if __name__ == '__main__':
# We pass in None for build_step to avoid building the sdk.
« 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