summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzunti <Szunti@users.noreply.github.com>2020-12-08 14:26:25 +0100
committerSzunti <Szunti@users.noreply.github.com>2020-12-08 14:26:25 +0100
commitac3c9ba95db2657b20ea149011a1de7e435cb92c (patch)
tree755fe6cd6f423e663bcc8dda20901ff644bfc89b
parent23cede3e955fcdbc6d6d9b5a5974aaac5760c217 (diff)
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.
-rw-r--r--test/run-test.sh4
1 files 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"