From 379e088f6f34c63eb72fba78f70bd7168cc547b2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 29 Aug 2024 17:07:46 +0200 Subject: test: when refusing to run slow tests, mention how to run them Let's be helpful and provide an actionable hint. --- src/test/test-tpm2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/test-tpm2.c b/src/test/test-tpm2.c index 3b5a375c88..2be104d853 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; } -- cgit v1.2.3