diff options
Diffstat (limited to 'meta-selftest')
-rw-r--r-- | meta-selftest/lib/oeqa/runtime/cases/virgl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-selftest/lib/oeqa/runtime/cases/virgl.py b/meta-selftest/lib/oeqa/runtime/cases/virgl.py index fd6b7851db..d301a19fa4 100644 --- a/meta-selftest/lib/oeqa/runtime/cases/virgl.py +++ b/meta-selftest/lib/oeqa/runtime/cases/virgl.py | |||
@@ -1,6 +1,7 @@ | |||
1 | from oeqa.runtime.case import OERuntimeTestCase | 1 | from oeqa.runtime.case import OERuntimeTestCase |
2 | from oeqa.core.decorator.depends import OETestDepends | 2 | from oeqa.core.decorator.depends import OETestDepends |
3 | import subprocess | 3 | import subprocess |
4 | import oe.lsb | ||
4 | 5 | ||
5 | class VirglTest(OERuntimeTestCase): | 6 | class VirglTest(OERuntimeTestCase): |
6 | 7 | ||
@@ -12,6 +13,11 @@ class VirglTest(OERuntimeTestCase): | |||
12 | 13 | ||
13 | @OETestDepends(['virgl.VirglTest.test_kernel_driver']) | 14 | @OETestDepends(['virgl.VirglTest.test_kernel_driver']) |
14 | def test_kmscube(self): | 15 | def test_kmscube(self): |
16 | |||
17 | distro = oe.lsb.distro_identifier() | ||
18 | if distro and distro == 'centos-7': | ||
19 | self.skipTest('kmscube is not working when centos 7 is the host OS') | ||
20 | |||
15 | status, output = self.target.run('kmscube', timeout=30) | 21 | status, output = self.target.run('kmscube', timeout=30) |
16 | self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output)) | 22 | self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output)) |
17 | self.assertIn('renderer: "virgl"', output, "kmscube does not seem to use virgl:\n%s" %(output)) | 23 | self.assertIn('renderer: "virgl"', output, "kmscube does not seem to use virgl:\n%s" %(output)) |