1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

test-network: disable irrelevant or one-time pylint checks

This commit is contained in:
Frantisek Sumsal 2022-02-03 19:31:15 +01:00
parent 54e2f32f50
commit 87bf983c55

View File

@ -1,5 +1,8 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1-or-later
# pylint: disable=line-too-long,too-many-lines,too-many-branches,too-many-statements,too-many-arguments
# pylint: disable=too-many-public-methods,too-many-boolean-expressions,invalid-name
# pylint: disable=missing-function-docstring,missing-class-docstring,missing-module-docstring
# systemd-networkd tests
import argparse
@ -276,6 +279,7 @@ def expectedFailureIfFQPIEIsNotAvailable():
return f
def setUpModule():
# pylint: disable=global-statement
global running_units
os.makedirs(network_unit_file_path, exist_ok=True)
@ -380,6 +384,7 @@ def setUpModule():
check_output('systemctl restart systemd-udevd')
def tearDownModule():
# pylint: disable=global-statement
global running_units
shutil.rmtree(networkd_ci_path)