Skip to content

Commit

Permalink
meson.build: more logging of the pytests
Browse files Browse the repository at this point in the history
The terminal width pytest assumes is 80 chars wide so any errors during
fixtures are ellipsized and useless. Let pytest create an extra file
(shoving that into meson-logs because why not) and make it print a
summary, hopefully that makes it easier to narrow down errors.
  • Loading branch information
whot committed May 16, 2024
1 parent d360133 commit 8ca2e65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,13 @@ if get_option('tests').enabled()
pytest = find_program('pytest-3', 'pytest')
test('pytest',
pytest,
args: ['--verbose', '--log-level=DEBUG', meson.current_source_dir()],
args: ['--verbose',
'-rfES',
'--log-level=DEBUG',
'--log-file', meson.project_build_root() / 'meson-logs' / 'pytest.log',
'--log-file-level=DEBUG',
meson.current_source_dir()
],
env: env,
suite: ['all'])
endif
Expand Down

0 comments on commit 8ca2e65

Please sign in to comment.