From 4a0eb6863d3517151fdec6b450bac2fa2c7ddfb4 Mon Sep 17 00:00:00 2001 From: David Steele Date: Mon, 27 Nov 2017 22:16:24 -0500 Subject: [PATCH] Sync time to prevent build failures when running on VirtualBox. --- doc/xml/release.xml | 4 ++++ test/test.pl | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 5373fe34b..1fb6fd69f 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -62,6 +62,10 @@

Only build C binary/library for Perl unit/integration tests.

+ + +

Sync time to prevent build failures when running on VirtualBox.

+
diff --git a/test/test.pl b/test/test.pl index 954899938..6e91c7e2a 100755 --- a/test/test.pl +++ b/test/test.pl @@ -330,6 +330,14 @@ eval ################################################################################################################################ 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) {