forked from M-Labs/artiq
test_frontends: always skip GUI programs
The "import PyQt5" hack breaks on nix/hydra.
This commit is contained in:
parent
e024fa89e5
commit
a9678dd9f2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue