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 30s

1 413 tests      134 ✔️  17m 30s ⏱️
       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 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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.9.18/x64/lib/python3.9/site-packages/iio.py:711: in <lambda>
    lambda self: self._read(),
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/iio.py:740: in _read
    _c_read_attr(self._channel, self._name_ascii, buf, len(buf))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = -32, func = <_FuncPtr object at 0x7f26e2cc5280>
arguments = (<iio.LP__Channel object at 0x7f26c3a82440>, b'calibbias', <ctypes.c_char_Array_1024 object at 0x7f26c3a82d40>, 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.9.18/x64/lib/python3.9/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 0x7f26c38764c0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38e7ac0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c38764c0>, uri = 'ip:10.1.0.86'
_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 0x7f26c3bb6be0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c37f9e40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3bb6be0>, uri = 'ip:10.1.0.86'
_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 0x7f26c3c2ec70>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c37f98c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3c2ec70>, uri = 'ip:10.1.0.86'
_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 0x7f26c390ff10>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c39ac440>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c390ff10>, uri = 'ip:10.1.0.86'
_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 0x7f26c381d940>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c39acd40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c381d940>, uri = 'ip:10.1.0.86'
_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 0x7f26c38d7580>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3d0dac0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c38d7580>, uri = 'ip:10.1.0.86'
_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 0x7f26c3859580>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38cd240>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c3859580>, uri = 'ip:10.1.0.86'
_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 0x7f26c38b4ca0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38cd0c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c38b4ca0>, uri = 'ip:10.1.0.86'
_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 0x7f26c396bdc0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38cdac0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c396bdc0>, uri = 'ip:10.1.0.86'
_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 0x7f26c3a14340>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38cdd40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c3a14340>, uri = 'ip:10.1.0.86'
_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 0x7f26c3803940>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38cdf40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

iio_uri = 'ip:10.1.0.86'

    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 0x7f26c3803940>, uri = 'ip:10.1.0.86'
_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 0x7f26c3bc09d0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38368c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3bc09d0>, uri = 'ip:10.1.0.86'
_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 0x7f26c38a48b0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3d0dac0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c38a48b0>, uri = 'ip:10.1.0.86'
_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 0x7f26c3a8da30>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c36a36c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3a8da30>, uri = 'ip:10.1.0.86'
_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 0x7f26c384cc40>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c36a3e40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f26cf5a9310>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c384cc40>, uri = 'ip:10.1.0.86'
_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 0x7f26c376ea00>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3883e40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/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 0x7f26cf5a9670>
iio_uri = 'ip:10.1.0.86', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}
val = [11.5, 11.0, 0.5, 15.5, 32.5, 16.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 0x7f26c376ea00>, uri = 'ip:10.1.0.86'
_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 0x7f26c375a3d0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3817cc0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/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 0x7f26cf5a9670>
iio_uri = 'ip:10.1.0.86', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}
val = [16.0, 4.0, 9.5, 3.0, 3.5, 17.0, ...]

    @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 0x7f26c375a3d0>, uri = 'ip:10.1.0.86'
_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 0x7f26c38eb580>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38839c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/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 0x7f26cf5a9670>
iio_uri = 'ip:10.1.0.86', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan0', depends = {'atten_control_mode_chan0': 'spi'}
val = [-1.9, -21.55, -28.45, -35.85, -8.9, -30.4, ...]

    @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 0x7f26c38eb580>, uri = 'ip:10.1.0.86'
_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 0x7f26c3716850>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3883b40>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/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 0x7f26cf5a9670>
iio_uri = 'ip:10.1.0.86', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan1', depends = {'atten_control_mode_chan1': 'spi'}
val = [-36.05, -35.9, -5.7, -5.5, -10.75, -1.45, ...]

    @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 0x7f26c3716850>, uri = 'ip:10.1.0.86'
_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 0x7f26c3765760>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3883dc0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f26cf5a95e0>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3765760>, uri = 'ip:10.1.0.86'
_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 0x7f26c3ad5880>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c3817cc0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f26cf5a95e0>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3ad5880>, uri = 'ip:10.1.0.86'
_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 0x7f26c388d9d0>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38839c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f26cf5a95e0>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c388d9d0>, uri = 'ip:10.1.0.86'
_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 0x7f26c374a400>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38a1740>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f26cf5a95e0>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c374a400>, uri = 'ip:10.1.0.86'
_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 0x7f26c3746490>, uri = 'ip:10.1.0.86'
_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.9.18/x64/lib/python3.9/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f26c38a13c0>
func = <_FuncPtr object at 0x7f26e2ca7e80>, arguments = (b'ip:10.1.0.86',)

    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.9.18/x64/lib/python3.9/site-packages/iio.py:56: BrokenPipeError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f26cf5a95e0>
iio_uri = 'ip:10.1.0.86', 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 0x7f26c3746490>, uri = 'ip:10.1.0.86'
_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