Skip to content

Commit

Permalink
Only run the LogicAnalyzer test on stm32.
Browse files Browse the repository at this point in the history
The gpio_sampler only supports stm32. I think previous samd platforms were
OK because they were M0, and this was already excluded.
  • Loading branch information
mcbridejc committed Sep 8, 2021
1 parent 6fb1d51 commit af788b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/modm/mock/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,17 @@ class LogicAnalyzer(Module):
if not core or "m0" in core["type"] or "m7" in core["type"]:
return False

# gpio_sampler only supports stm32
if options[":target"].identifier["platform"] != "stm32":
return False

module.depends(":stdc++", ":driver:gpio_sampler", ":debug")
return True

def build(self, env):
env.outbasepath = "modm-test/src/modm-test/mock"
env.copy("logic_analyzer.hpp")


def init(module):
module.name = ":mock"

Expand Down

0 comments on commit af788b9

Please sign in to comment.