From ac3c9ba95db2657b20ea149011a1de7e435cb92c Mon Sep 17 00:00:00 2001 From: Szunti Date: Tue, 8 Dec 2020 14:26:25 +0100 Subject: [PATCH] Fix locale dependent behaviour in run-test.sh 'stat ... | grep Modify' fails on non english locales. stat -c '%y' used in most of the places, but one exception remained. --- test/run-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-test.sh b/test/run-test.sh index 69302ae..a46e9a7 100644 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -155,9 +155,9 @@ dotest "Keep mtime of the font directory" prep cp "$FONT1" "$FONTDIR" touch -d @0 "$FONTDIR" -stat "$FONTDIR" | grep Modify > out1 +stat -c '%y' "$FONTDIR" > out1 $FCCACHE "$FONTDIR" -stat "$FONTDIR" | grep Modify > out2 +stat -c '%y' "$FONTDIR" > out2 if cmp out1 out2 > /dev/null ; then : ; else echo "*** Test failed: $TEST" echo "mtime was modified"