File: 0018-Specify-locale-when-running-tests.patch

package info (click to toggle)
shaarli 0.14.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,612 kB
  • sloc: php: 30,001; javascript: 2,083; makefile: 139; xml: 69; python: 42; sh: 35
file content (21 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: James Valleroy <jvalleroy@mailbox.org>
Date: Mon, 11 Dec 2023 10:39:45 -0500
Subject: Specify locale when running tests

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 357d411..5041437 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ test: translate
 	@echo "PHPUNIT"
 	@echo "-------"
 	@mkdir -p sandbox
-	@phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests
+	@LC_ALL="en_US.UTF-8" phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests
 
 locale_test_%:
 	@UT_LOCALE=$*.utf8 \