1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-04 23:07:27 +02:00

Sync time to prevent build failures when running on VirtualBox.

This commit is contained in:
David Steele 2017-11-27 22:16:24 -05:00
parent 332861c6c9
commit 4a0eb6863d
2 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,10 @@
<release-item> <release-item>
<p>Only build C binary/library for Perl unit/integration tests.</p> <p>Only build C binary/library for Perl unit/integration tests.</p>
</release-item> </release-item>
<release-item>
<p>Sync time to prevent build failures when running on VirtualBox.</p>
</release-item>
</release-development-list> </release-development-list>
</release-test-list> </release-test-list>
</release> </release>

View File

@ -330,6 +330,14 @@ eval
################################################################################################################################ ################################################################################################################################
if (!defined($iVmId)) if (!defined($iVmId))
{ {
# Sync time to prevent build failures when running on VirtualBox.
my $strVBoxService = '/usr/sbin/VBoxService';
if ($oStorageTest->exists($strVBoxService))
{
executeTest("sudo ${strVBoxService} --timesync-set-start");
}
# Build CI configuration # Build CI configuration
if (!$bNoCiConfig) if (!$bNoCiConfig)
{ {