Skip to content

Update adis16475 tests #2311

Update adis16475 tests

Update adis16475 tests #2311

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results failed Jan 17, 2024 in 0s

130 fail, 1 149 skipped, 134 pass in 17m 29s

1 413 tests      134 ✔️  17m 29s ⏱️
       1 suites  1 149 💤
       1 files       130

Results for commit 9745bff.

Annotations

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[anglvel_x_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'anglvel_x_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:105: in dev_interface
    if not hasattr(sdr, attr):
adi/adis16475.py:204: in anglvel_x_calibbias
    return self._get_iio_attr("anglvel_x", "calibbias", False)
adi/attribute.py:127: in _get_iio_attr
    self._get_iio_attr_str(channel_name, attr_name, output, _ctrl)
adi/attribute.py:122: in _get_iio_attr_str
    return channel.attrs[attr_name].value
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:711: in <lambda>
    lambda self: self._read(),
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:740: in _read
    _c_read_attr(self._channel, self._name_ascii, buf, len(buf))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = -32, func = <_FuncPtr object at 0x7f5d5716af40>
arguments = (<iio.LP__Channel object at 0x7f5d38cae440>, b'calibbias', <ctypes.c_char_Array_1024 object at 0x7f5d38cae840>, 1024)

    def _check_negative(result, func, arguments):
        if result >= 0:
            return result
>       raise OSError(-result, _strerror(-result))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:62: BrokenPipeError

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[anglvel_y_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38eb6640>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b73340>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'anglvel_y_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38eb6640>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[anglvel_z_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38af9550>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38bf7440>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'anglvel_z_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38af9550>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[accel_x_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38e6efa0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38bf7b40>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'accel_x_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38e6efa0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[accel_y_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38b0dc10>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38bf7dc0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'accel_y_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38b0dc10>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_attr[accel_z_calibbias--2147483648-2147483647-1-0-adi.adis16475] (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38b6bd30>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b16740>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adis16475'
attr = 'accel_z_calibbias', start = -2147483648, stop = 2147483647, step = 1
tol = 0

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("anglvel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("anglvel_z_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_x_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_y_calibbias", -2147483648, 2147483647, 1, 0),
            ("accel_z_calibbias", -2147483648, 2147483647, 1, 0),
        ],
    )
    def test_adis16475_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adis16475_p.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38b6bd30>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_filter_low_pass_3db_frequency (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38b47280>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b16c40>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16475_filter_low_pass_3db_frequency(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:28: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38b47280>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_sample_rate (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38b1beb0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b01240>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16475_sample_rate(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38b1beb0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_firmware_date (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38d8e100>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b7abc0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16475_firmware_date(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:74: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38d8e100>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_firmware_revision (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38ac6130>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b017c0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16475_firmware_revision(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38ac6130>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16475_serial_number (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38af96d0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b019c0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16475_serial_number(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38af96d0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adis16475_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adis16476_conv_data (test.test_adis16475_p) failed

results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7f5d38840280>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b01cc0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.235'

    def test_adis16476_conv_data(iio_uri):
>       adis16475 = adi.adis16475(uri=iio_uri)

test/test_adis16475_p.py:98: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/adis16475.py:32: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adis16475.adis16475 object at 0x7f5d38840280>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_float_attr[tx0_lo-30000000-6000000000-1-8-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38af8b20>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a98640>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002', attr = 'tx0_lo'
start = 30000000, stop = 6000000000, step = 1, tol = 8

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("tx0_lo", 30000000, 6000000000, 1, 8),
            ("tx1_lo", 30000000, 6000000000, 1, 8),
            ("rx0_lo", 30000000, 6000000000, 1, 8),
            ("rx1_lo", 30000000, 6000000000, 1, 8),
        ],
    )
    def test_adrv9002_float_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adrv9002_p.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38af8b20>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_float_attr[tx1_lo-30000000-6000000000-1-8-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d389cfa60>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a7cac0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002', attr = 'tx1_lo'
start = 30000000, stop = 6000000000, step = 1, tol = 8

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("tx0_lo", 30000000, 6000000000, 1, 8),
            ("tx1_lo", 30000000, 6000000000, 1, 8),
            ("rx0_lo", 30000000, 6000000000, 1, 8),
            ("rx1_lo", 30000000, 6000000000, 1, 8),
        ],
    )
    def test_adrv9002_float_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adrv9002_p.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d389cfa60>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_float_attr[rx0_lo-30000000-6000000000-1-8-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d3908ef40>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d389f8e40>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002', attr = 'rx0_lo'
start = 30000000, stop = 6000000000, step = 1, tol = 8

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("tx0_lo", 30000000, 6000000000, 1, 8),
            ("tx1_lo", 30000000, 6000000000, 1, 8),
            ("rx0_lo", 30000000, 6000000000, 1, 8),
            ("rx1_lo", 30000000, 6000000000, 1, 8),
        ],
    )
    def test_adrv9002_float_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adrv9002_p.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d3908ef40>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_float_attr[rx1_lo-30000000-6000000000-1-8-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38b5ebb0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b04640>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f5d391f3940>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002', attr = 'rx1_lo'
start = 30000000, stop = 6000000000, step = 1, tol = 8

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol",
        [
            ("tx0_lo", 30000000, 6000000000, 1, 8),
            ("tx1_lo", 30000000, 6000000000, 1, 8),
            ("rx0_lo", 30000000, 6000000000, 1, 8),
            ("rx1_lo", 30000000, 6000000000, 1, 8),
        ],
    )
    def test_adrv9002_float_attr(
        test_attribute_single_value, iio_uri, classname, attr, start, stop, step, tol
    ):
>       test_attribute_single_value(iio_uri, classname, attr, start, stop, step, tol)

test/test_adrv9002_p.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38b5ebb0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_hardware_gain[rx_hardwaregain_chan0-val0-depends0-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38909730>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38b04940>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values_with_depends = <function attribute_multiple_values_with_depends at 0x7f5d391f3ca0>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}
val = [13.5, 20.0, 2.0, 22.5, 18.0, 26.5, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val, depends",
        [
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan0="spi", rx_ensm_mode_chan0="rf_enabled",),
            ),
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan1="spi", rx_ensm_mode_chan1="rf_enabled",),
            ),
            (
                "tx_hardwaregain_chan0",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan0="spi"),
            ),
            (
                "tx_hardwaregain_chan1",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan1="spi"),
            ),
        ],
    )
    def test_adrv9002_hardware_gain(
        test_attribute_multiple_values_with_depends, iio_uri, classname, attr, depends, val
    ):
>       test_attribute_multiple_values_with_depends(
            iio_uri, classname, attr, depends, val, 0
        )

test/test_adrv9002_p.py:99: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:250: in attribute_multiple_values_with_depends
    assert dev_interface(uri, classname, depends[p], p, 0)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38909730>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_hardware_gain[rx_hardwaregain_chan0-val1-depends1-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38eac610>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a8fbc0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values_with_depends = <function attribute_multiple_values_with_depends at 0x7f5d391f3ca0>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}
val = [2.0, 30.0, 10.5, 24.5, 7.0, 31.5, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val, depends",
        [
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan0="spi", rx_ensm_mode_chan0="rf_enabled",),
            ),
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan1="spi", rx_ensm_mode_chan1="rf_enabled",),
            ),
            (
                "tx_hardwaregain_chan0",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan0="spi"),
            ),
            (
                "tx_hardwaregain_chan1",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan1="spi"),
            ),
        ],
    )
    def test_adrv9002_hardware_gain(
        test_attribute_multiple_values_with_depends, iio_uri, classname, attr, depends, val
    ):
>       test_attribute_multiple_values_with_depends(
            iio_uri, classname, attr, depends, val, 0
        )

test/test_adrv9002_p.py:99: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:250: in attribute_multiple_values_with_depends
    assert dev_interface(uri, classname, depends[p], p, 0)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38eac610>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_hardware_gain[tx_hardwaregain_chan0-val2-depends2-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d389e0b50>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a8f140>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values_with_depends = <function attribute_multiple_values_with_depends at 0x7f5d391f3ca0>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan0', depends = {'atten_control_mode_chan0': 'spi'}
val = [-33.85, -38.7, -22.25, -3.9, -22.45, -13.95, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val, depends",
        [
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan0="spi", rx_ensm_mode_chan0="rf_enabled",),
            ),
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan1="spi", rx_ensm_mode_chan1="rf_enabled",),
            ),
            (
                "tx_hardwaregain_chan0",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan0="spi"),
            ),
            (
                "tx_hardwaregain_chan1",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan1="spi"),
            ),
        ],
    )
    def test_adrv9002_hardware_gain(
        test_attribute_multiple_values_with_depends, iio_uri, classname, attr, depends, val
    ):
>       test_attribute_multiple_values_with_depends(
            iio_uri, classname, attr, depends, val, 0
        )

test/test_adrv9002_p.py:99: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:250: in attribute_multiple_values_with_depends
    assert dev_interface(uri, classname, depends[p], p, 0)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d389e0b50>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_hardware_gain[tx_hardwaregain_chan1-val3-depends3-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d3897d580>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a98740>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values_with_depends = <function attribute_multiple_values_with_depends at 0x7f5d391f3ca0>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan1', depends = {'atten_control_mode_chan1': 'spi'}
val = [-12.55, -25.55, -37.55, -30.45, -14.85, -7.9, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val, depends",
        [
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan0="spi", rx_ensm_mode_chan0="rf_enabled",),
            ),
            (
                "rx_hardwaregain_chan0",
                random_values_in_range(0, 34, 0.5, 10),
                dict(gain_control_mode_chan1="spi", rx_ensm_mode_chan1="rf_enabled",),
            ),
            (
                "tx_hardwaregain_chan0",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan0="spi"),
            ),
            (
                "tx_hardwaregain_chan1",
                random_values_in_range(-40, 0, 0.05, 10),
                dict(atten_control_mode_chan1="spi"),
            ),
        ],
    )
    def test_adrv9002_hardware_gain(
        test_attribute_multiple_values_with_depends, iio_uri, classname, attr, depends, val
    ):
>       test_attribute_multiple_values_with_depends(
            iio_uri, classname, attr, depends, val, 0
        )

test/test_adrv9002_p.py:99: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:250: in attribute_multiple_values_with_depends
    assert dev_interface(uri, classname, depends[p], p, 0)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d3897d580>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_boolean_attr[agc_tracking_en_chan0-val0-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38b53970>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38a8f240>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f5d391f3c10>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'agc_tracking_en_chan0', val = [0, 1]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("agc_tracking_en_chan0", [0, 1]),
            ("bbdc_rejection_tracking_en_chan0", [0, 1]),
            ("hd_tracking_en_chan0", [0, 1]),
            ("quadrature_fic_tracking_en_chan0", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan0", [0, 1]),
            ("rfdc_tracking_en_chan0", [0, 1]),
            ("rssi_tracking_en_chan0", [0, 1]),
            ("agc_tracking_en_chan1", [0, 1]),
            ("bbdc_rejection_tracking_en_chan1", [0, 1]),
            ("hd_tracking_en_chan1", [0, 1]),
            ("quadrature_fic_tracking_en_chan1", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan1", [0, 1]),
            ("rfdc_tracking_en_chan1", [0, 1]),
            ("rssi_tracking_en_chan1", [0, 1]),
            ("close_loop_gain_tracking_en_chan0", [0, 1]),
            ("lo_leakage_tracking_en_chan0", [0, 1]),
            ("loopback_delay_tracking_en_chan0", [0, 1]),
            ("pa_correction_tracking_en_chan0", [0, 1]),
            ("quadrature_tracking_en_chan0", [0, 1]),
            ("close_loop_gain_tracking_en_chan1", [0, 1]),
            ("lo_leakage_tracking_en_chan1", [0, 1]),
            ("loopback_delay_tracking_en_chan1", [0, 1]),
            ("pa_correction_tracking_en_chan1", [0, 1]),
            ("quadrature_tracking_en_chan1", [0, 1]),
            ("tx0_en", [0, 1]),
            ("tx1_en", [0, 1]),
            ("rx1_en", [0, 1]),
            ("rx0_en", [0, 1]),
        ],
    )
    def test_adrv9002_boolean_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_adrv9002_p.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38b53970>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_boolean_attr[bbdc_rejection_tracking_en_chan0-val1-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38a51130>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38aa33c0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f5d391f3c10>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'bbdc_rejection_tracking_en_chan0', val = [0, 1]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("agc_tracking_en_chan0", [0, 1]),
            ("bbdc_rejection_tracking_en_chan0", [0, 1]),
            ("hd_tracking_en_chan0", [0, 1]),
            ("quadrature_fic_tracking_en_chan0", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan0", [0, 1]),
            ("rfdc_tracking_en_chan0", [0, 1]),
            ("rssi_tracking_en_chan0", [0, 1]),
            ("agc_tracking_en_chan1", [0, 1]),
            ("bbdc_rejection_tracking_en_chan1", [0, 1]),
            ("hd_tracking_en_chan1", [0, 1]),
            ("quadrature_fic_tracking_en_chan1", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan1", [0, 1]),
            ("rfdc_tracking_en_chan1", [0, 1]),
            ("rssi_tracking_en_chan1", [0, 1]),
            ("close_loop_gain_tracking_en_chan0", [0, 1]),
            ("lo_leakage_tracking_en_chan0", [0, 1]),
            ("loopback_delay_tracking_en_chan0", [0, 1]),
            ("pa_correction_tracking_en_chan0", [0, 1]),
            ("quadrature_tracking_en_chan0", [0, 1]),
            ("close_loop_gain_tracking_en_chan1", [0, 1]),
            ("lo_leakage_tracking_en_chan1", [0, 1]),
            ("loopback_delay_tracking_en_chan1", [0, 1]),
            ("pa_correction_tracking_en_chan1", [0, 1]),
            ("quadrature_tracking_en_chan1", [0, 1]),
            ("tx0_en", [0, 1]),
            ("tx1_en", [0, 1]),
            ("rx1_en", [0, 1]),
            ("rx0_en", [0, 1]),
        ],
    )
    def test_adrv9002_boolean_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_adrv9002_p.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38a51130>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_boolean_attr[hd_tracking_en_chan0-val2-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d3fe74070>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38aa3240>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f5d391f3c10>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'hd_tracking_en_chan0', val = [0, 1]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("agc_tracking_en_chan0", [0, 1]),
            ("bbdc_rejection_tracking_en_chan0", [0, 1]),
            ("hd_tracking_en_chan0", [0, 1]),
            ("quadrature_fic_tracking_en_chan0", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan0", [0, 1]),
            ("rfdc_tracking_en_chan0", [0, 1]),
            ("rssi_tracking_en_chan0", [0, 1]),
            ("agc_tracking_en_chan1", [0, 1]),
            ("bbdc_rejection_tracking_en_chan1", [0, 1]),
            ("hd_tracking_en_chan1", [0, 1]),
            ("quadrature_fic_tracking_en_chan1", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan1", [0, 1]),
            ("rfdc_tracking_en_chan1", [0, 1]),
            ("rssi_tracking_en_chan1", [0, 1]),
            ("close_loop_gain_tracking_en_chan0", [0, 1]),
            ("lo_leakage_tracking_en_chan0", [0, 1]),
            ("loopback_delay_tracking_en_chan0", [0, 1]),
            ("pa_correction_tracking_en_chan0", [0, 1]),
            ("quadrature_tracking_en_chan0", [0, 1]),
            ("close_loop_gain_tracking_en_chan1", [0, 1]),
            ("lo_leakage_tracking_en_chan1", [0, 1]),
            ("loopback_delay_tracking_en_chan1", [0, 1]),
            ("pa_correction_tracking_en_chan1", [0, 1]),
            ("quadrature_tracking_en_chan1", [0, 1]),
            ("tx0_en", [0, 1]),
            ("tx1_en", [0, 1]),
            ("rx1_en", [0, 1]),
            ("rx0_en", [0, 1]),
        ],
    )
    def test_adrv9002_boolean_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_adrv9002_p.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d3fe74070>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_boolean_attr[quadrature_fic_tracking_en_chan0-val3-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d388aefa0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38aa3840>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f5d391f3c10>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'quadrature_fic_tracking_en_chan0', val = [0, 1]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("agc_tracking_en_chan0", [0, 1]),
            ("bbdc_rejection_tracking_en_chan0", [0, 1]),
            ("hd_tracking_en_chan0", [0, 1]),
            ("quadrature_fic_tracking_en_chan0", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan0", [0, 1]),
            ("rfdc_tracking_en_chan0", [0, 1]),
            ("rssi_tracking_en_chan0", [0, 1]),
            ("agc_tracking_en_chan1", [0, 1]),
            ("bbdc_rejection_tracking_en_chan1", [0, 1]),
            ("hd_tracking_en_chan1", [0, 1]),
            ("quadrature_fic_tracking_en_chan1", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan1", [0, 1]),
            ("rfdc_tracking_en_chan1", [0, 1]),
            ("rssi_tracking_en_chan1", [0, 1]),
            ("close_loop_gain_tracking_en_chan0", [0, 1]),
            ("lo_leakage_tracking_en_chan0", [0, 1]),
            ("loopback_delay_tracking_en_chan0", [0, 1]),
            ("pa_correction_tracking_en_chan0", [0, 1]),
            ("quadrature_tracking_en_chan0", [0, 1]),
            ("close_loop_gain_tracking_en_chan1", [0, 1]),
            ("lo_leakage_tracking_en_chan1", [0, 1]),
            ("loopback_delay_tracking_en_chan1", [0, 1]),
            ("pa_correction_tracking_en_chan1", [0, 1]),
            ("quadrature_tracking_en_chan1", [0, 1]),
            ("tx0_en", [0, 1]),
            ("tx1_en", [0, 1]),
            ("rx1_en", [0, 1]),
            ("rx0_en", [0, 1]),
        ],
    )
    def test_adrv9002_boolean_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_adrv9002_p.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d388aefa0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception

Check warning on line 0 in test.test_adrv9002_p

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adrv9002_boolean_attr[quadrature_w_poly_tracking_en_chan0-val4-adi.adrv9002] (test.test_adrv9002_p) failed

results.xml
Raw output
self = <adi.adrv9002.adrv9002 object at 0x7f5d38d52df0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
>               self._ctx = iio.Context(self.uri)

adi/context_manager.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f5d38aa36c0>
func = <_FuncPtr object at 0x7f5d57143b80>, arguments = (b'ip:10.1.0.235',)

    def _check_null(result, func, arguments):
        if result:
            return result
        err = get_last_error() if "Windows" in _system() else get_errno()
>       raise OSError(err, _strerror(err))
E       BrokenPipeError: [Errno 32] Broken pipe

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f5d391f3c10>
iio_uri = 'ip:10.1.0.235', classname = 'adi.adrv9002'
attr = 'quadrature_w_poly_tracking_en_chan0', val = [0, 1]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("agc_tracking_en_chan0", [0, 1]),
            ("bbdc_rejection_tracking_en_chan0", [0, 1]),
            ("hd_tracking_en_chan0", [0, 1]),
            ("quadrature_fic_tracking_en_chan0", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan0", [0, 1]),
            ("rfdc_tracking_en_chan0", [0, 1]),
            ("rssi_tracking_en_chan0", [0, 1]),
            ("agc_tracking_en_chan1", [0, 1]),
            ("bbdc_rejection_tracking_en_chan1", [0, 1]),
            ("hd_tracking_en_chan1", [0, 1]),
            ("quadrature_fic_tracking_en_chan1", [0, 1]),
            ("quadrature_w_poly_tracking_en_chan1", [0, 1]),
            ("rfdc_tracking_en_chan1", [0, 1]),
            ("rssi_tracking_en_chan1", [0, 1]),
            ("close_loop_gain_tracking_en_chan0", [0, 1]),
            ("lo_leakage_tracking_en_chan0", [0, 1]),
            ("loopback_delay_tracking_en_chan0", [0, 1]),
            ("pa_correction_tracking_en_chan0", [0, 1]),
            ("quadrature_tracking_en_chan0", [0, 1]),
            ("close_loop_gain_tracking_en_chan1", [0, 1]),
            ("lo_leakage_tracking_en_chan1", [0, 1]),
            ("loopback_delay_tracking_en_chan1", [0, 1]),
            ("pa_correction_tracking_en_chan1", [0, 1]),
            ("quadrature_tracking_en_chan1", [0, 1]),
            ("tx0_en", [0, 1]),
            ("tx1_en", [0, 1]),
            ("rx1_en", [0, 1]),
            ("rx0_en", [0, 1]),
        ],
    )
    def test_adrv9002_boolean_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_adrv9002_p.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/adrv9002.py:46: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.adrv9002.adrv9002 object at 0x7f5d38d52df0>, uri = 'ip:10.1.0.235'
_device_name = ''

    def __init__(self, uri="", _device_name=""):
        if self._ctx:
            return
        self.uri = uri
        try:
            if self.uri == "":
                # Try USB contexts first
                if _device_name != "":
                    contexts = iio.scan_contexts()
                    for c in contexts:
                        if _device_name in contexts[c]:
                            self._ctx = iio.Context(c)
                            break
                # Try auto discover
                if not self._ctx and self._uri_auto != "":
                    self._ctx = iio.Context(self._uri_auto)
                if not self._ctx:
                    raise Exception("No device found")
            else:
                self._ctx = iio.Context(self.uri)
        except BaseException:
>           raise Exception("No device found")
E           Exception: No device found

adi/context_manager.py:38: Exception