summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-06 08:47:43 +0300
committerDevaev Maxim <[email protected]>2020-09-07 05:54:25 +0300
commita6dac4bd8495bc04f762a3ad415d301fb10498c9 (patch)
treeea81c6a9a9ea2521cc4b9bdfaee9b00d5b6e9c6d /testenv
parente8bd1e264822967e1ddc628bf507664a5f4b9679 (diff)
ugpio plugins
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/test_gpio.py4
-rw-r--r--testenv/v2-hdmi-rpi4.override.yaml5
2 files changed, 7 insertions, 2 deletions
diff --git a/testenv/tests/test_gpio.py b/testenv/tests/test_gpio.py
index 6a02816d..3db61609 100644
--- a/testenv/tests/test_gpio.py
+++ b/testenv/tests/test_gpio.py
@@ -29,7 +29,7 @@ from kvmd import gpio
@pytest.mark.parametrize("pin", [0, 1, 13])
def test_ok__loopback_initial_false(pin: int) -> None:
with gpio.bcm():
- assert gpio.set_output(pin) == pin
+ assert gpio.set_output(pin, False) == pin
assert gpio.read(pin) is False
gpio.write(pin, True)
assert gpio.read(pin) is True
@@ -53,6 +53,6 @@ def test_ok__input(pin: int) -> None:
def test_fail__invalid_pin() -> None:
with pytest.raises(AssertionError):
- gpio.set_output(-1)
+ gpio.set_output(-1, False)
with pytest.raises(AssertionError):
gpio.set_input(-1)
diff --git a/testenv/v2-hdmi-rpi4.override.yaml b/testenv/v2-hdmi-rpi4.override.yaml
index 1977393a..a4e5a397 100644
--- a/testenv/v2-hdmi-rpi4.override.yaml
+++ b/testenv/v2-hdmi-rpi4.override.yaml
@@ -38,6 +38,11 @@ kvmd:
- "--no-log-colors"
gpio:
+ drivers:
+ gpio2:
+ type: gpio
+ state_poll: 0.3
+
scheme:
host1: # any name like foo_bar_baz
pin: 1