From c2bb208d2bad7e38744e67bdc1a33c4a6b4bde03 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 3 Jan 2023 10:22:42 +0000 Subject: [PATCH] d/run-tests.sh: Use dh_auto_test In particular this forces the C.UTF-8 locale, which should mean the tests pass even when run under a non-UTF-8 locale like C (which official Debian buildds do not do, but some other environments like reproducible-builds might). Closes: #1027680 --- debian/run-tests.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/run-tests.sh b/debian/run-tests.sh index 5a6b42ceea..b87a2871ff 100755 --- a/debian/run-tests.sh +++ b/debian/run-tests.sh @@ -77,10 +77,9 @@ for BACKEND in $BACKENDS; do --generate en_US.UTF-8 \ --generate sv_SE=ISO-8859-1 \ -- \ - meson test -C "$BUILDDIR" \ - --print-errorlogs \ - --setup="$BACKEND" \ - "$@" \ + dh_auto_test --builddirectory="$BUILDDIR" -- \ + --setup="$BACKEND" \ + "$@" \ || touch "$test_data/tests-failed" # Don't base64-encode the image results for tests that upstream -- 2.30.2