Skip to content

Commit

Permalink
Sync time to prevent build failures when running on VirtualBox.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Dec 18, 2017
1 parent 4e256f5 commit e4f5602
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/xml/release.xml
Expand Up @@ -68,6 +68,10 @@
<release-item>
<p>Move restore test infrastructure to <code>HostBackup.pm</code>. Required to test restores on the backup server, a fairly common scenario. Improve the restore function to accept optional parameters rather than a long list of parameters. In passing, clean up extraneous use of <code>strType</code> and <code>strComment</code> variables.</p>
</release-item>

<release-item>
<p>Sync time to prevent build failures when running on VirtualBox.</p>
</release-item>
</release-development-list>
</release-test-list>
</release>
Expand Down
8 changes: 8 additions & 0 deletions test/test.pl
Expand Up @@ -330,6 +330,14 @@ =head1 SYNOPSIS
################################################################################################################################
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
if (!$bNoCiConfig)
{
Expand Down

0 comments on commit e4f5602

Please sign in to comment.