]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: when refusing to run slow tests, mention how to run them 34189/head
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Aug 2024 15:07:46 +0000 (17:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Aug 2024 12:17:36 +0000 (14:17 +0200)
Let's be helpful and provide an actionable hint.

src/test/test-tpm2.c

index 3b5a375c883eeba43ccadf374598873a80a0cbd0..2be104d853468633b0bf5b467da2e099f5195e07 100644 (file)
@@ -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;
         }