Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Dec 12, 2023
1 parent a1511d7 commit e0e9165
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cli/test-other.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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)

0 comments on commit e0e9165

Please sign in to comment.