git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0361748
)
test_smbclient_s3.sh: force LANG=C during test_utimes()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Mar 2018 10:19:54 +0000
(11:19 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 16 Mar 2018 13:47:37 +0000
(14:47 +0100)
This makes the test independent from the developers environment.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/script/tests/test_smbclient_s3.sh
patch
|
blob
|
history
diff --git
a/source3/script/tests/test_smbclient_s3.sh
b/source3/script/tests/test_smbclient_s3.sh
index db77eb12de9d4f3b0b2d3de9f51909dbb7f3730b..03f7b276d91c90cd697d2de6a470df0c14403cea 100755
(executable)
--- a/
source3/script/tests/test_smbclient_s3.sh
+++ b/
source3/script/tests/test_smbclient_s3.sh
@@
-1422,6
+1422,9
@@
test_utimes()
saved_TZ="$TZ"
TZ=UTC
export TZ
+ saved_LANG="$LANG"
+ LANG=C
+ export LANG
cat > $tmpfile <<EOF
del utimes_test
@@
-1442,6
+1445,11
@@
EOF
else
unset TZ
fi
+ if [ -n "$saved_LANG" ] ; then
+ export LANG="$saved_LANG"
+ else
+ unset LANG
+ fi
if [ $ret != 0 ] ; then
echo "$out"