]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Remove unnecessary use of global in run_tests()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 9 Jan 2026 06:39:42 +0000 (12:09 +0530)
committerKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 10 Mar 2026 16:38:04 +0000 (22:08 +0530)
The global statement is only required when assigning to a global
variable, not when simply reading its value. In run_tests(), the global
setup_time and global teardown_time declarations are unnecessary
because these variables are only read. Remove both declarations from
run_tests().

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/ftests.py

index bbbb0527f1ffccd742ade0ba7ee9b65e1591394e..70fc5f0989181722d956934a4d532b63a177036a 100755 (executable)
@@ -364,8 +364,6 @@ def run_tests(config):
              )
     print('-----------------------------------------------------------------')
 
-    global setup_time
-    global teardown_time
     if config.args.verbose:
         print('Timing Results:')
         print(