From a6dac4bd8495bc04f762a3ad415d301fb10498c9 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 6 Sep 2020 08:47:43 +0300 Subject: ugpio plugins --- testenv/tests/test_gpio.py | 4 ++-- testenv/v2-hdmi-rpi4.override.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'testenv') 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 -- cgit v1.2.3