[CRIU] [PATCH] zdtm: fix flake8 warnings

Andrei Vagin avagin at openvz.org
Mon Nov 14 23:23:23 PST 2016


flake8 --config=scripts/flake8.cfg test/zdtm.py
test/zdtm.py:66:1: E305 expected 2 blank lines after class or function definition, found 1
test/zdtm.py:127:1: E305 expected 2 blank lines after class or function definition, found 1
test/zdtm.py:971:1: E305 expected 2 blank lines after class or function definition, found 1
test/zdtm.py:1618:1: E305 expected 2 blank lines after class or function definition, found 1
Makefile:377: recipe for target 'lint' failed

Signed-off-by: Andrei Vagin <avagin at openvz.org>
---
 test/zdtm.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/zdtm.py b/test/zdtm.py
index 0d8503f..222177a 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -61,6 +61,7 @@ def make_tests_root():
 		atexit.register(clean_tests_root)
 	return tests_root[1]
 
+
 # Report generation
 
 report_dir = None
@@ -123,6 +124,7 @@ def check_core_files():
 
 	return True
 
+
 # Arch we run on
 arch = os.uname()[4]
 
@@ -964,6 +966,7 @@ def try_run_hook(test, args):
 		if hook.wait() != 0:
 			raise test_fail_exc("hook " + " ".join(args))
 
+
 #
 # Step by step execution
 #
@@ -1615,6 +1618,7 @@ def run_tests(opts):
 		if opts['join_ns']:
 			subprocess.Popen(["ip", "netns", "delete", "zdtm_netns"])
 
+
 sti_fmt = "%-40s%-10s%s"
 
 
-- 
2.7.4



More information about the CRIU mailing list