From 66ec2bde3906f884b4cd527580469c09d57b5179 Mon Sep 17 00:00:00 2001 From: Oleksandr Labetskyi Date: Tue, 12 Dec 2023 16:58:50 +0200 Subject: [PATCH] #12254: ci fix --- test/cli/test-other.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/cli/test-other.py b/test/cli/test-other.py index d638336ef65..f8cf63096c2 100644 --- a/test/cli/test-other.py +++ b/test/cli/test-other.py @@ -828,7 +828,7 @@ def test_file_duplicate_2(tmpdir): assert stderr == '' -def test_premium_with_relative_path(tmpdir): +def test_premium_with_relative_path(tmpdir): #12254 test_file = os.path.join(tmpdir, 'test.c') @@ -838,7 +838,7 @@ def test_premium_with_relative_path(tmpdir): product_name = 'Cppcheck Premium ' + str(time.time()) test_cfg = lookup_cppcheck_exe() - if(test_cfg.endswith('.exe')) : + if(test_cfg.endswith('.exe')): test_cfg = test_cfg[:-4] test_cfg += '.cfg' with open(test_cfg, 'wt') as f: @@ -850,7 +850,7 @@ def test_premium_with_relative_path(tmpdir): } """.replace('NAME', product_name)) - if os.path.isfile('cppcheck') : + if os.path.isfile('cppcheck'): os.chdir('test/cli') args = ['--premium=misra-c++-2008', test_file] @@ -862,3 +862,5 @@ def test_premium_with_relative_path(tmpdir): _, stdout, stderr = cppcheck(['--version']) assert stdout == product_name + '\n' assert stderr == '' + + os.remove(test_cfg)