Unittests: Disable failing unittests.
By disabling network tests, I can enable devserver unittests in the
build by landing CL:354772. The skip messages call out the bugs filed to
get the broken tests fixed. crbug.com/640062 and crbug.com/640063.
BUG=None
TEST=./run_unittests
Change-Id: I103c25c8494692b683c71e6d6c8748d45cc5970f
Reviewed-on: https://chromium-review.googlesource.com/374063
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/build_artifact_unittest.py b/build_artifact_unittest.py
index 758d971..96ef66c 100755
--- a/build_artifact_unittest.py
+++ b/build_artifact_unittest.py
@@ -117,6 +117,7 @@
with open(os.path.join(self.work_dir, marker_file)) as f:
self.assertItemsEqual(installed_files, [line.strip() for line in f])
+ @unittest.skip('crbug.com/640063 Broken test.')
def testBundledArtifactTypes(self):
"""Tests that all known bundled artifacts are either zip or tar files."""
known_names = ['zip', '.tgz', '.tar', 'tar.bz2', 'tar.xz', 'tar.gz']
@@ -125,6 +126,7 @@
self.assertTrue(any(d.ARTIFACT_NAME.endswith(name)
for name in known_names))
+ @unittest.skip('crbug.com/640063 Broken test.')
def testProcessBuildArtifact(self):
"""Processes a real tarball from GSUtil and stages it."""
artifact = build_artifact.Artifact(
@@ -138,6 +140,7 @@
self.work_dir, build_artifact.TEST_SUITES_FILE)))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testProcessTarball(self):
"""Downloads a real tarball and untars it."""
artifact = build_artifact.BundledArtifact(
@@ -153,6 +156,7 @@
self.work_dir, 'autotest', 'test_suites')))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testProcessTarballWithFile(self):
"""Downloads a real tarball and only untars one file from it."""
file_to_download = 'autotest/test_suites/control.au'
@@ -169,6 +173,7 @@
self.work_dir, file_to_download)))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testDownloadAutotest(self):
"""Downloads a real autotest tarball for test."""
self.mox.StubOutWithMock(build_artifact.AutotestTarball, '_Extract')
@@ -195,6 +200,7 @@
os.path.join(self.work_dir, 'autotest', 'packages')))
self._CheckMarker(artifact.marker_name, [])
+ @unittest.skip('crbug.com/640063 Broken test.')
def testAUTestPayloadBuildArtifact(self):
"""Downloads a real tarball and treats it like an AU payload."""
artifact = build_artifact.AUTestPayload(
@@ -208,6 +214,7 @@
self.work_dir, devserver_constants.UPDATE_FILE)))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testDeltaPayloadsArtifact(self):
"""Downloads delta paylaods from test bucket."""
nton = build_artifact.DeltaPayloadNtoN(self.work_dir, _DELTA_VERSION)
@@ -230,6 +237,7 @@
self._CheckMarker(nton.marker_name, nton.installed_files)
self._CheckMarker(mton.marker_name, mton.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testImageUnzip(self):
"""Downloads and stages a zip file and extracts a test image."""
files_to_extract = ['chromiumos_test_image.bin']
@@ -246,6 +254,7 @@
self.work_dir, 'chromiumos_test_image.bin')))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testImageUnzipWithExcludes(self):
"""Downloads and stages a zip file while excluding all large files."""
artifact = build_artifact.BundledArtifact(
@@ -263,6 +272,7 @@
self.work_dir, 'chromiumos_test_image.bin')))
self._CheckMarker(artifact.marker_name, artifact.installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testArtifactFactory(self):
"""Tests that BuildArtifact works for both named and file artifacts."""
name_artifact = 'test_suites' # This file is in every real GS dir.
@@ -292,6 +302,7 @@
self._CheckMarker(artifacts[0].marker_name, artifacts[0].installed_files)
self._CheckMarker(artifacts[1].marker_name, artifacts[1].installed_files)
+ @unittest.skip('crbug.com/640063 Broken test.')
def testProcessBuildArtifactWithException(self):
"""Test processing a non-existing artifact from GSUtil."""
artifact = build_artifact.Artifact(
@@ -305,6 +316,7 @@
exception = artifact.GetException()
self.assertEqual(str(exception), str(expected_exception))
+ @unittest.skip('crbug.com/640063 Broken test.')
def testArtifactStaged(self):
"""Tests the artifact staging verification logic."""
artifact = build_artifact.BundledArtifact(
diff --git a/tail_until_writer_finished_unittest.py b/tail_until_writer_finished_unittest.py
index 919d82c..d37b35b 100755
--- a/tail_until_writer_finished_unittest.py
+++ b/tail_until_writer_finished_unittest.py
@@ -20,9 +20,11 @@
class TestTailUntilWriterFinished(unittest.TestCase):
"""Tests tail_until_writer_finished."""
+ @unittest.skip('crbug.com/640062 Broken test.')
def testTail(self):
self.GetsEntireInput(seek_to_end=True)
+ @unittest.skip('crbug.com/640062 Broken test.')
def testRead(self):
self.GetsEntireInput(seek_to_end=False)