Skip to content

Commit

Permalink
gateware: don't run tests if there is no migen.
Browse files Browse the repository at this point in the history
This allows us to skip testing gateware on Windows.
  • Loading branch information
whitequark committed Mar 26, 2018
1 parent 87c2f11 commit 4804cfe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions artiq/gateware/test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import unittest

try:
import migen
except ImportError:
def load_tests(*args, **kwargs):
raise unittest.SkipTest("migen unavailable")

1 comment on commit 4804cfe

@sbourdeauducq
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we already skipping gateware tests on Windows? They are in a different folder as the other tests, which should be sufficient for excluding them.

Please sign in to comment.