]> arthur.barton.de Git - bup.git/commitdiff
test-ftp: set TZ=UTC to produce consistent names
authorRob Browning <rlb@defaultvalue.org>
Sun, 15 Nov 2020 18:09:08 +0000 (12:09 -0600)
committerRob Browning <rlb@defaultvalue.org>
Thu, 26 Nov 2020 21:53:09 +0000 (15:53 -0600)
This dependency was exposed by the upcoming switch to pytest which may
run this test alongside others in the same python process.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
test/ext/test-ftp

index 2ffa301686780924f5bd2ae4193f860897b2b4df..0f9591b9f616fbdec97bafb1c1bb57b13766bfcc 100755 (executable)
@@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function
 from os import chdir, mkdir, symlink, unlink
 from os.path import abspath, dirname
 from subprocess import PIPE
-from time import localtime, strftime
+from time import localtime, strftime, tzset
 import os, sys
 
 # For buptest, wvtest, ...
@@ -42,6 +42,8 @@ environ[b'GIT_COMMITTER_EMAIL'] = b'bup@a425bc70a02811e49bdf73ee56450e6f'
 with test_tempdir(b'ftp-') as tmpdir:
     environ[b'BUP_DIR'] = tmpdir + b'/repo'
     environ[b'GIT_DIR'] = tmpdir + b'/repo'
+    environ[b'TZ'] = b'UTC'
+    tzset()
 
     chdir(tmpdir)
     mkdir(b'src')