From: Tom Hromatka Date: Wed, 28 Oct 2020 15:34:13 +0000 (+0000) Subject: ftests: Fix config typo in test 001 X-Git-Tag: v2.0.3~11^2^2~31^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a64cea3f9818dff1ab5a503dce2b4bfbd760d74d;p=thirdparty%2Flibcgroup.git ftests: Fix config typo in test 001 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 --- diff --git a/ftests/001-cgget-basic_cgget.py b/ftests/001-cgget-basic_cgget.py index be588692..c8cd3fd6 100755 --- a/ftests/001-cgget-basic_cgget.py +++ b/ftests/001-cgget-basic_cgget.py @@ -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))