From 95aaf08193e7d4831065a21484940af17f1d0c5e Mon Sep 17 00:00:00 2001 From: Trisha De Vera Date: Thu, 18 Apr 2024 10:00:52 +0800 Subject: [PATCH] Disable tests during emulation --- test/test_adis16480.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_adis16480.py b/test/test_adis16480.py index ee831dd1a..3e4dca0cb 100644 --- a/test/test_adis16480.py +++ b/test/test_adis16480.py @@ -6,7 +6,7 @@ device_name = "adis16480" ######################################## -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) @pytest.mark.parametrize("classname", [(classname)]) @pytest.mark.parametrize("channel", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) def test_adis16480_rx_data(test_dma_rx, iio_uri, classname, channel): @@ -14,7 +14,7 @@ def test_adis16480_rx_data(test_dma_rx, iio_uri, classname, channel): ######################################### -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) def test_adis16480_conv_data(iio_uri): adis16480 = adi.adis16480(uri=iio_uri) @@ -28,7 +28,7 @@ def test_adis16480_conv_data(iio_uri): ######################################### -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) @pytest.mark.parametrize("classname", [(classname)]) @pytest.mark.parametrize( "attr, start, stop, step, tol", @@ -58,7 +58,7 @@ def test_adis16480_attr( ######################################### -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) @pytest.mark.parametrize("classname", [(classname)]) @pytest.mark.parametrize( "attr, values, tol, repeats", @@ -82,28 +82,28 @@ def test_adis16480_attr_multiple_val( ######################################### -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) def test_adis16480_firmware_date(iio_uri): adis16480 = adi.adis16480(uri=iio_uri) assert adis16480.firmware_date != "00-00-0000" -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) def test_adis16480_firmware_revision(iio_uri): adis16480 = adi.adis16480(uri=iio_uri) assert adis16480.firmware_revision != "0.0" -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) def test_adis16480_product_id(iio_uri): adis16480 = adi.adis16480(uri=iio_uri) assert adis16480.product_id != 0 -@pytest.mark.iio_hardware(hardware) +@pytest.mark.iio_hardware(hardware, True) def test_adis16480_serial_number(iio_uri): adis16480 = adi.adis16480(uri=iio_uri)