Skip to content

Commit 34d53fd

Browse files
committed
test
1 parent 9833ff9 commit 34d53fd

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

test/cli/other_test.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pytest
77
import glob
88
import json
9-
import re
109
import subprocess
1110
import shutil
1211

@@ -1057,25 +1056,35 @@ def test_markup(tmpdir):
10571056
assert_cppcheck(args, ec_exp=0, err_exp=[], out_exp=out_lines)
10581057

10591058

1060-
def test_progress_markup_j(tmpdir):
1059+
def test_markup_j(tmpdir):
10611060
test_file_1 = os.path.join(tmpdir, 'test_1.qml')
10621061
with open(test_file_1, 'wt'):
10631062
pass
1064-
test_file_2 = os.path.join(tmpdir, 'test_2.qml')
1063+
test_file_2 = os.path.join(tmpdir, 'test_2.cpp')
10651064
with open(test_file_2, 'wt'):
10661065
pass
1066+
test_file_3 = os.path.join(tmpdir, 'test_3.qml')
1067+
with open(test_file_3, 'wt'):
1068+
pass
1069+
test_file_4 = os.path.join(tmpdir, 'test_4.cpp')
1070+
with open(test_file_4, 'wt'):
1071+
pass
10671072

1068-
args = ['--library=qt', '-j2', test_file_1, test_file_2]
1073+
args = ['--library=qt', '-j2', test_file_1, test_file_2, test_file_3, test_file_4]
10691074

10701075
exitcode, stdout, stderr = cppcheck(args)
10711076
assert exitcode == 0, stdout if stdout else stderr
1072-
file_num = 1
10731077
lines = stdout.splitlines()
1078+
10741079
assert sorted(lines) == [
1075-
'1/2 files checked 0% done',
1076-
'2/2 files checked 0% done',
1080+
'1/4 files checked 0% done',
1081+
'2/4 files checked 0% done',
1082+
'3/4 files checked 0% done',
1083+
'4/4 files checked 0% done',
10771084
'Checking {} ...'.format(test_file_1),
1078-
'Checking {} ...'.format(test_file_2)
1085+
'Checking {} ...'.format(test_file_2),
1086+
'Checking {} ...'.format(test_file_3),
1087+
'Checking {} ...'.format(test_file_4)
10791088
]
10801089
assert stderr == ''
10811090

0 commit comments

Comments
 (0)