From e0e9165a18608cecd12450e586e081c8aaa92a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 12 Dec 2023 15:23:12 +0100 Subject: [PATCH] ci --- test/cli/test-other.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cli/test-other.py b/test/cli/test-other.py index d638336ef65..7ff5bd3ae86 100644 --- a/test/cli/test-other.py +++ b/test/cli/test-other.py @@ -828,9 +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') with open(test_file, 'wt'): pass @@ -850,7 +848,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 +860,5 @@ def test_premium_with_relative_path(tmpdir): _, stdout, stderr = cppcheck(['--version']) assert stdout == product_name + '\n' assert stderr == '' + + os.remove(test_cfg)