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 <jfor...@fedoraproject.org>
AuthorDate: Fri Jul 9 11:26:43 2021 -0500

    Disable leap-second on virtualbox guests
    
    Signed-off-by: Justin M. Forbes <jfor...@fedoraproject.org>
---
 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@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to