diff options
author | Caroline Tice <cmtice@google.com> | 2017-05-26 11:08:37 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-31 14:15:47 -0700 |
commit | 8ab698a91e101c218e58a67d810d1ae0691d7b29 (patch) | |
tree | 181e1fcec2855384a0cf7957e6decaa020b9ef75 /setup_chromeos.py | |
parent | 4c5de98c78520452b325f10f26981c47c52430a3 (diff) | |
download | toolchain-utils-8ab698a91e101c218e58a67d810d1ae0691d7b29.tar.gz |
Verify manifest is in paladin before trying to use it.
With increasing frequency the lumpy nightly test fails very early
because it ends up trying to get a manifest that only exists in
Android, not in ChromeOS. This CL adds code to verify the manifest
version actually exists in the paladins list before trying to use it.
BUG=chromium:726778
TEST=Tested this code in the nightly build tests and it worked.
Change-Id: I86f8eb9c8e28fd4a404bc63d49d8d9fb27de8b3b
Reviewed-on: https://chromium-review.googlesource.com/517266
Commit-Ready: Caroline Tice <cmtice@chromium.org>
Tested-by: Caroline Tice <cmtice@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'setup_chromeos.py')
-rwxr-xr-x | setup_chromeos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup_chromeos.py b/setup_chromeos.py index c81fae92..0b51d830 100755 --- a/setup_chromeos.py +++ b/setup_chromeos.py @@ -179,7 +179,7 @@ Default is 'latest_lkgm'.""") init = 'repo init -u %s' % manifest_repo elif version == 'latest_lkgm': manifests = manifest_versions.ManifestVersions() - version = manifests.TimeToVersion(time.mktime(time.gmtime())) + version = manifests.TimeToVersionChromeOS(time.mktime(time.gmtime())) version, manifest = version.split('.', 1) logger.GetLogger().LogOutput('found version %s.%s for latest LKGM' % (version, manifest)) |