Fix cros lint issues in chromite/scripts.
Fix or disable all cros lint warnings in scripts.
BUG=None
TEST=Ran pylint.
Change-Id: Iedd2f2e361ea82c082f1c95c9054ac15d19193ff
Reviewed-on: https://chromium-review.googlesource.com/190730
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
diff --git a/scripts/autotest_quickmerge_unittest.py b/scripts/autotest_quickmerge_unittest.py
index f9ee8c3..87dc248 100755
--- a/scripts/autotest_quickmerge_unittest.py
+++ b/scripts/autotest_quickmerge_unittest.py
@@ -72,6 +72,7 @@
}
class ItemizeChangesFromRsyncOutput(unittest.TestCase):
+ """Test autotest_quickmerge.ItemizeChangesFromRsyncOutput."""
def testItemizeChangesFromRsyncOutput(self):
"""Test that rsync output parser returns correct FileMutations."""
@@ -99,6 +100,7 @@
class PackageNameParsingTest(unittest.TestCase):
+ """Test autotest_quickmerge.GetStalePackageNames."""
def testGetStalePackageNames(self):
autotest_sysroot = '/an/arbitrary/path/'
@@ -113,6 +115,7 @@
class RsyncCommandTest(cros_build_lib_unittest.RunCommandTestCase):
+ """Test autotest_quickmerge.RsyncQuickmerge."""
def testRsyncQuickmergeCommand(self):
"""Test that RsyncQuickMerge makes correct call to SudoRunCommand"""
@@ -137,6 +140,8 @@
class PortageManipulationsTest(mox.MoxTestBase):
+ """Test usage of autotest_quickmerge.portage."""
+
def testUpdatePackageContents(self):
"""Test that UpdatePackageContents makes the correct calls to portage."""
autotest_quickmerge.portage = self.mox.CreateMockAnything('portage')
@@ -184,6 +189,7 @@
"""Ensures that required portage API exists."""
def runTest(self):
try:
+ # pylint: disable=F0401
import portage
except ImportError:
self.skipTest('Portage not available in test environment. Re-run test '