]> code.ossystems Code Review - openembedded-core.git/commitdiff
meta-selftest/virgl: Exclude centos7 from the kmscube test
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Mar 2019 07:54:10 +0000 (07:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Mar 2019 12:32:17 +0000 (05:32 -0700)
This test does not work on centos7 so diable it (as was done in the
original series before we thought it was working).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/lib/oeqa/runtime/cases/virgl.py

index fd6b7851dbec4e15068a08029c493047586b088d..d301a19fa423c4f3d2a1fc176b0c0b012c9f1beb 100644 (file)
@@ -1,6 +1,7 @@
 from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.depends import OETestDepends
 import subprocess
+import oe.lsb
 
 class VirglTest(OERuntimeTestCase):
 
@@ -12,6 +13,11 @@ class VirglTest(OERuntimeTestCase):
 
     @OETestDepends(['virgl.VirglTest.test_kernel_driver'])
     def test_kmscube(self):
+
+        distro = oe.lsb.distro_identifier()
+        if distro and distro == 'centos-7':
+            self.skipTest('kmscube is not working when centos 7 is the host OS')
+
         status, output = self.target.run('kmscube', timeout=30)
         self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output))
         self.assertIn('renderer: "virgl"', output, "kmscube does not seem to use virgl:\n%s" %(output))