test: when refusing to run slow tests, mention how to run them

Let's be helpful and provide an actionable hint.
This commit is contained in:
Lennart Poettering
2024-08-30 14:17:36 +02:00
parent 43b93a8a26
commit 379e088f6f
+2 -2
View 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;
}