[LTP] [PATCH 2/2] du01.sh: Avoid l10n issues

Martin Doucha mdoucha@suse.cz
Tue Aug 30 16:24:16 CEST 2022


Some du01.sh subtests are language dependent. Prevent failures on
non-English systems by setting test locale to C.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/commands/du/du01.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/commands/du/du01.sh b/testcases/commands/du/du01.sh
index 5548d7667..7977fd461 100755
--- a/testcases/commands/du/du01.sh
+++ b/testcases/commands/du/du01.sh
@@ -27,6 +27,9 @@ setup()
 	# BLOCKSIZE environment variables. Here we need to
 	# set DU_BLOCK_SIZE to 1024 to ensure the result is expected.
 	export DU_BLOCK_SIZE=1024
+
+	# Some subtests are language dependent
+	export LC_ALL=C
 }
 
 du_test()
-- 
2.37.2



More information about the ltp mailing list