test_frontends: always skip GUI programs

The "import PyQt5" hack breaks on nix/hydra.
This commit is contained in:
Sebastien Bourdeauducq 2019-01-21 23:41:07 +08:00
parent e024fa89e5
commit a9678dd9f2
1 changed files with 1 additions and 7 deletions

View File

@ -7,6 +7,7 @@ import unittest
class TestFrontends(unittest.TestCase):
def test_help(self):
"""Test --help as a simple smoke test against catastrophic breakage."""
# Skip tests for GUI programs on headless CI environments.
commands = {
"aqctl": [
"corelog", "korad_ka3005p", "lda", "novatech409b",
@ -19,13 +20,6 @@ class TestFrontends(unittest.TestCase):
]
}
# Skip tests for GUI programs on headless CI environments.
try:
from PyQt5 import QtGui, QtWidgets
commands["artiq"] += ["browser", "dashboard"]
except ImportError:
pass
for module in (prefix + "_" + name
for prefix, names in commands.items()
for name in names):