Skip to content

Commit 232db11

Browse files
nashifkartben
authored andcommitted
twister: tests: fix test output parsing
Fix test output parsing and update to what twister produces. Signed-off-by: Anas Nashif <[email protected]>
1 parent 8d0a6b5 commit 232db11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tests/twister_blackbox/test_device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def teardown_class(cls):
5656
def test_seed(self, capfd, out_path, seed):
5757
test_platforms = ['native_sim']
5858
path = os.path.join(TEST_DATA, 'tests', 'seed_native_sim')
59-
args = ['--detailed-test-id', '--outdir', out_path, '-i', '-T', path, '-vv',] + \
59+
args = ['--no-detailed-test-id', '--outdir', out_path, '-i', '-T', path, '-vv',] + \
6060
['--seed', f'{seed[0]}'] + \
6161
[val for pair in zip(
6262
['-p'] * len(test_platforms), test_platforms
@@ -72,5 +72,5 @@ def test_seed(self, capfd, out_path, seed):
7272

7373
assert str(sys_exit.value) == '1'
7474

75-
expected_line = r'seed_native_sim.dummy FAILED Failed \(rc=1\) \(native (\d+\.\d+)s/seed: {} <host>\)'.format(seed[0])
75+
expected_line = r'seed_native_sim.dummy\s+FAILED rc=1 \(native (\d+\.\d+)s/seed: {} <host>\)'.format(seed[0])
7676
assert re.search(expected_line, err)

0 commit comments

Comments
 (0)