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

package info (click to toggle)
shaarli 0.15.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,640 kB
  • sloc: php: 30,003; javascript: 2,061; makefile: 135; xml: 69; python: 42; sh: 35
file content (21 lines) | stat: -rw-r--r-- 596 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 dd9588d..b851e46 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_%:
 	@LANG=$*.utf8 \