You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Fix mismatched timezone in expect test.
Also run the --vm-none tests in a non-UTC timezone to prevent regressions. Suggested by Stephen Frost.
This commit is contained in:
@ -67,6 +67,14 @@
|
|||||||
|
|
||||||
<p>Fix container test path being used when <br-option>--vm=none</br-option>.</p>
|
<p>Fix container test path being used when <br-option>--vm=none</br-option>.</p>
|
||||||
</release-item>
|
</release-item>
|
||||||
|
|
||||||
|
<release-item>
|
||||||
|
<release-item-contributor-list>
|
||||||
|
<release-item-ideator id="stephen.frost"/>
|
||||||
|
</release-item-contributor-list>
|
||||||
|
|
||||||
|
<p>Fix mismatched timezone in expect test.</p>
|
||||||
|
</release-item>
|
||||||
</release-improvement-list>
|
</release-improvement-list>
|
||||||
</release-test-list>
|
</release-test-list>
|
||||||
</release>
|
</release>
|
||||||
|
@ -14,6 +14,9 @@ testRun(void)
|
|||||||
{
|
{
|
||||||
FUNCTION_HARNESS_VOID();
|
FUNCTION_HARNESS_VOID();
|
||||||
|
|
||||||
|
// The tests expect the timezone to be UTC
|
||||||
|
setenv("TZ", "UTC", true);
|
||||||
|
|
||||||
// Create the repo directories
|
// Create the repo directories
|
||||||
String *repoPath = strNewFmt("%s/repo", testPath());
|
String *repoPath = strNewFmt("%s/repo", testPath());
|
||||||
String *archivePath = strNewFmt("%s/%s", strPtr(repoPath), "archive");
|
String *archivePath = strNewFmt("%s/%s", strPtr(repoPath), "archive");
|
||||||
|
@ -182,6 +182,9 @@ eval
|
|||||||
processExec('sudo mkdir -p /tmp/pgbackrest && sudo chown root:root /tmp/pgbackrest && sudo chmod 700 /tmp/pgbackrest');
|
processExec('sudo mkdir -p /tmp/pgbackrest && sudo chown root:root /tmp/pgbackrest && sudo chmod 700 /tmp/pgbackrest');
|
||||||
processEnd();
|
processEnd();
|
||||||
|
|
||||||
|
# Set local timezone to make sure tests work in any timezone
|
||||||
|
$ENV{'TZ'} = 'America/New_York';
|
||||||
|
|
||||||
processBegin('remove sudo');
|
processBegin('remove sudo');
|
||||||
processExec('sudo rm /etc/sudoers.d/travis');
|
processExec('sudo rm /etc/sudoers.d/travis');
|
||||||
processEnd();
|
processEnd();
|
||||||
|
Reference in New Issue
Block a user