]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Fix config typo in test 001
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 28 Oct 2020 15:34:13 +0000 (15:34 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 2 Nov 2020 22:00:33 +0000 (15:00 -0700)
Test 001 erroneously set the test number in the wrong place -
config.test_num.  This caused all the tests to run when only
test 001 was invoked.  The correct setting is config.args.num

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/001-cgget-basic_cgget.py

index be58869293fb14633eb9368f8a6a53ce377f2631..c8cd3fd68a7fe75e66bd64f2fb3a54e5f37bdd0f 100755 (executable)
@@ -63,5 +63,5 @@ def main(config):
 if __name__ == '__main__':
     config = ftests.parse_args()
     # this test was invoked directly.  run only it
-    config.test_num = int(os.path.basename(__file__).split('-')[0])
+    config.args.num = int(os.path.basename(__file__).split('-')[0])
     sys.exit(ftests.main(config))