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/cros_generate_sysroot_unittest.py b/scripts/cros_generate_sysroot_unittest.py
index 8f326ea..b97d6db 100755
--- a/scripts/cros_generate_sysroot_unittest.py
+++ b/scripts/cros_generate_sysroot_unittest.py
@@ -4,6 +4,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+"""Unittests for cros_generate_sysroot."""
+
import os
import sys
@@ -25,6 +27,8 @@
class CrosGenMock(partial_mock.PartialMock):
+ """Helper class to Mock out cros_generate_sysroot.GenerateSysroot."""
+
TARGET = 'chromite.scripts.cros_generate_sysroot.GenerateSysroot'
ATTRS = ('_InstallToolchain', '_InstallKernelHeaders',
'_InstallBuildDependencies')
@@ -53,6 +57,7 @@
class OverallTest(cros_test_lib.MockTempDirTestCase):
+ """Tests for cros_generate_sysroot."""
def setUp(self):
self.cg_mock = self.StartPatcher(CrosGenMock())