Skip to content

Commit

Permalink
test_smbclient_s3.sh: force LANG=C during test_utimes()
Browse files Browse the repository at this point in the history
This makes the test independent from the developers environment.

Signed-off-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
metze-samba committed Mar 16, 2018
1 parent 0361748 commit 3056e24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source3/script/tests/test_smbclient_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 3056e24

Please sign in to comment.