diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-05 13:34:29 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-05 13:34:29 +0200 |
commit | 99d3a99f0d448f0f08610f4dea65c9dac255624d (patch) | |
tree | 893107fd2bac790d804fb3d7f9969d3147499c12 /tests | |
parent | b6a06540519c73bfc24f110b4ad78f534552655b (diff) | |
download | drminfo-99d3a99f0d448f0f08610f4dea65c9dac255624d.tar.gz |
tests: virgl tweak
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic.py | 2 | ||||
-rw-r--r-- | tests/drminfo/__init__.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/basic.py b/tests/basic.py index e73d2c7..f8b7690 100644 --- a/tests/basic.py +++ b/tests/basic.py @@ -104,6 +104,8 @@ class BaseDRM(TestDRM): self.console_run('egltest -i') eglinfo = self.console_wait('---root---') self.write_text(vga, "eglinfo", eglinfo) + if not "virgl" in eglinfo: + self.fail("virgl not available"); @avocado.skipUnless(os.path.exists('/usr/bin/dracut'), "no dracut") @avocado.skipUnless(os.path.exists('/usr/bin/drminfo'), "no drminfo") diff --git a/tests/drminfo/__init__.py b/tests/drminfo/__init__.py index e7a2436..e46c78b 100644 --- a/tests/drminfo/__init__.py +++ b/tests/drminfo/__init__.py @@ -68,6 +68,7 @@ class TestDRM(avocado.Test): "/usr/bin/fbinfo", "/usr/bin/fbtest", "/usr/bin/virtiotest", + "/usr/bin/egltest", "/usr/bin/prime", "/usr/bin/edid-decode", @@ -157,7 +158,7 @@ class TestDRM(avocado.Test): return output def html_append(self, html): - outfile = '%s/view.html' % self.outputdir + outfile = '%s/_checkdata.html' % self.outputdir f = open(outfile, "a") f.write(html) f.close() |