test-ukify: skip signing in tests when slow tests are disabled
commit43b951a4fdb3ff38386a05ba2687664325786b5c
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Feb 2024 10:26:53 +0000 (22 11:26 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 Feb 2024 00:15:39 +0000 (28 00:15 +0000)
treeefb7ddcadd39b98bbf72ac6e639e315b2e0e89ab
parent72b9369293db5bd63a4076a8fd87d7e7ea04b2dd
test-ukify: skip signing in tests when slow tests are disabled

I have a large initrd (built with mkosi-initrd) and the test-ukify takes 30 s.
Let's use the usual approach of skipping the slowests tests.

(pytest has marks, and it would be nicer to mark tests with pytest.mark.slow,
and then use "-m 'not slow'" in the meson test invocation. But markers must be
pre-registered, otherwise pytest emits a warning. There are a few ways to
register markers, but they all require "project configuration", but because of
how we invoke pytest, this is hard to do. So let's just use an environment
variable.)

(cherry picked from commit a181901ab2248f7359e48e0c6394a2f9dd0b6d39)
(cherry picked from commit f5780a2f67e989e9362bf0d19cc61be3962bae54)
src/test/meson.build
src/ukify/test/test_ukify.py