From: Lennart Poettering Date: Thu, 29 Aug 2024 15:07:46 +0000 (+0200) Subject: test: when refusing to run slow tests, mention how to run them X-Git-Tag: v257-rc1~586^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F34189%2Fhead;p=thirdparty%2Fsystemd.git test: when refusing to run slow tests, mention how to run them Let's be helpful and provide an actionable hint. --- diff --git a/src/test/test-tpm2.c b/src/test/test-tpm2.c index 3b5a375c883..2be104d8534 100644 --- a/src/test/test-tpm2.c +++ b/src/test/test-tpm2.c @@ -1179,7 +1179,7 @@ static int check_calculate_seal(Tpm2Context *c) { int r; if (detect_virtualization() == VIRTUALIZATION_NONE && !slow_tests_enabled()) { - log_notice("Skipping slow calculate seal TPM2 tests. Physical system detected, and slow tests disabled."); + log_notice("Skipping slow calculate seal TPM2 tests. Physical system detected, and slow tests disabled. (To enable, run again with $SYSTEMD_SLOW_TESTS=1.)"); return 0; } @@ -1257,7 +1257,7 @@ static void check_seal_unseal(Tpm2Context *c) { assert(c); if (detect_virtualization() == VIRTUALIZATION_NONE && !slow_tests_enabled()) { - log_notice("Skipping slow seal/unseal TPM2 tests. Physical system detected, and slow tests disabled."); + log_notice("Skipping slow seal/unseal TPM2 tests. Physical system detected, and slow tests disabled. (To enable, run again with $SYSTEMD_SLOW_TESTS=1.)"); return; }