Skip to content

Fix the pytest invocation#687

Merged
whot merged 2 commits into
linuxwacom:masterfrom
whot:wip/pytest-fixes
May 16, 2024
Merged

Fix the pytest invocation#687
whot merged 2 commits into
linuxwacom:masterfrom
whot:wip/pytest-fixes

Conversation

@whot

@whot whot commented May 13, 2024

Copy link
Copy Markdown
Member

meson always sets ASAN_OPTIONS so the SVG tests didn't actually run in our CI. oops.

Filing as draft because pretty much all the SVGs added in #659 are missing some bits so they need to get fixed one-by-one.

whot added 2 commits May 16, 2024 18:39
meson always sets ASAN_OPTIONS/UBSAN_OPTIONS even where they're not
used which lead to us skipping the various SVG tests during meson test.

Instead move this to meson.build and just run pytest if sanitize is off.
In the meson test run, split the pytests across multiple invocations.
This makes it slighly easier to debug and also avoids any timeout issues
since we no longer have one long test run.
@whot whot force-pushed the wip/pytest-fixes branch from 2e28364 to 0779b19 Compare May 16, 2024 08:43
@whot whot marked this pull request as ready for review May 16, 2024 08:50
@whot

whot commented May 16, 2024

Copy link
Copy Markdown
Member Author

ftr, this change still skips the hwdb checks in the CI because of

SKIPPED [1092] ../test/test_udev_rules.py:117: Skipping test: [Errno 13] Permission denied: '/etc/udev/hwdb.d/99-libwacom-pytest.hwdb'

Need to fix that separately.

@whot whot merged commit 84ad9d4 into linuxwacom:master May 16, 2024
@whot whot mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant