summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-10-17 14:31:25 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-10-17 14:31:25 +0200
commit6f255fe191900013d1c33aba59941d75dfbdb293 (patch)
treef8f6f19f1280c21203dbc5f97b1654c929cc3ce6
parentd388f3d7237c5bd37ecb1187acf81c07b4dce8ae (diff)
downloadsystemd-6f255fe191900013d1c33aba59941d75dfbdb293.tar.gz
test: ignore gcov errors in TEST-34
TEST-34 complains in `test_check_writable` when running with gcov, as the build directory tree is not writable with DynamicUser=true. As I had no luck with $GCOV_PREFIX and other runtime gcov configuration, let's just ignore the gcov errors for this test.
-rwxr-xr-xtest/TEST-34-DYNAMICUSERMIGRATE/test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/TEST-34-DYNAMICUSERMIGRATE/test.sh b/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
index 5acc57363e..4e8836648a 100755
--- a/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
+++ b/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
@@ -3,6 +3,11 @@
set -e
TEST_DESCRIPTION="test migrating state directory from DynamicUser=1 to DynamicUser=0 and back"
+# Certain subtests run with DynamicUser=true which makes writing the gcov
+# artifacts impossible. As $GCOV_PREFIX and friends seem to be ineffective
+# in this situation, let's simply ignore all gcov complaints for the whole
+# test to make it happy.
+IGNORE_MISSING_COVERAGE=yes
# shellcheck source=test/test-functions
. "${TEST_BASE_DIR:?}/test-functions"