cros_build_lib: disable repo manifest tests
These rely on ToT repo code which can break things. Disable tests in
branches since it's unlikely this code will break/change. We'll find
a better solution in ToT.
BUG=chromium:647414
TEST=`./lib/cros_build_lib_unittest` no longer fails in branch w/ToT repo
Change-Id: I8133bff80cc64bd6c5c7bf43df6f32c058eb7987
Reviewed-on: https://chromium-review.googlesource.com/386196
Reviewed-by: Ketaki Deshpande <ketakid@chromium.org>
Commit-Queue: Ketaki Deshpande <ketakid@chromium.org>
Tested-by: Ketaki Deshpande <ketakid@chromium.org>
diff --git a/lib/cros_build_lib_unittest.py b/lib/cros_build_lib_unittest.py
index e73a317..2212046 100644
--- a/lib/cros_build_lib_unittest.py
+++ b/lib/cros_build_lib_unittest.py
@@ -19,6 +19,7 @@
import StringIO
import sys
import time
+import unittest
import __builtin__
from chromite.cbuildbot import constants
@@ -1231,6 +1232,7 @@
self.active_manifest = os.path.realpath(
os.path.join(self.tempdir, '.repo', 'manifest.xml'))
+ @unittest.skip('Relies on ToT repo code https://crbug.com/647414')
def testManifestInheritance(self):
osutils.WriteFile(self.active_manifest, """
<manifest>
@@ -1263,6 +1265,7 @@
self.assertEqual(list(manifest.remotes), ['foon'])
# pylint: disable=E1101
+ @unittest.skip('Relies on ToT repo code https://crbug.com/647414')
def testGetManifestsBranch(self):
func = git.ManifestCheckout._GetManifestsBranch
manifest = self.manifest_dir
@@ -1313,6 +1316,7 @@
git.RunGit(manifest, ['branch', '-d', 'default'])
assertExcept("It should be checked out to 'default'")
+ @unittest.skip('Relies on ToT repo code https://crbug.com/647414')
def testGitMatchBranchName(self):
git_repo = os.path.join(self.tempdir, '.repo', 'manifests')