[kernel-tests] branch master updated: Disable leap-second on virtualbox guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is an automated email from the git hooks/post-receive script.

jforbes pushed a commit to branch master
in repository kernel-tests.

The following commit(s) were added to refs/heads/master by this push:
     new 6048cca  Disable leap-second on virtualbox guests
6048cca is described below

commit 6048cca135c9b40b484ab1f1b36a21fede49cd4e
Author: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx>
AuthorDate: Fri Jul 9 11:26:43 2021 -0500

    Disable leap-second on virtualbox guests
    
    Signed-off-by: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx>
---
 default/insert_leap_second/runtest.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/default/insert_leap_second/runtest.sh b/default/insert_leap_second/runtest.sh
index 54403ac..37d5f03 100755
--- a/default/insert_leap_second/runtest.sh
+++ b/default/insert_leap_second/runtest.sh
@@ -12,6 +12,17 @@ if [ "$is_root" -ne "0" ]; then
         exit 3
 fi
 
+#VirtualBox syncs time with the host and makes this test fail
+if [ ! -f /usr/sbin/dmidecode ]; then
+	echo "dmidecode was not installed, skipping."
+	exit 3
+fi
+dmi=$(LANG=C /usr/sbin/dmidecode 2>&1)
+if echo "$dmi" | grep -q 'Manufacturer: innotek GmbH'; then
+	echo "This test does not work on Virtualbox guests"
+	exit 3
+fi
+
 # build the test source (upstream is git://github.com/johnstultz-work/timetests.git)
 if [ ! -f ./leap-a-day ]; then
 	gcc -o leap-a-day leap-a-day.c

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux