Update adis16475 tests #2311
130 fail, 1 149 skipped, 134 pass in 17m 29s
Annotations
Check warning on line 0 in test.test_adis16475_p
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 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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.10.13/x64/lib/python3.10/site-packages/iio.py:711: in <lambda>
lambda self: self._read(),
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/iio.py:740: in _read
_c_read_attr(self._channel, self._name_ascii, buf, len(buf))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = -32, func = <_FuncPtr object at 0x7fcc521b0ac0>
arguments = (<iio.LP__Channel object at 0x7fcc2f1dc5c0>, b'calibbias', <ctypes.c_char_Array_1024 object at 0x7fcc2f1dc7c0>, 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.10.13/x64/lib/python3.10/site-packages/iio.py:62: BrokenPipeError
Check warning on line 0 in test.test_adis16475_p
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 0x7fcc2f0da200>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f2b6ec0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f0da200>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f20b3a0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1dc4c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f20b3a0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f0dd870>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b1840>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f0dd870>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f388910>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b1440>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f388910>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f173610>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b0fc0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f173610>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f1c7d30>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f4f0640>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f1c7d30>, uri = 'ip:10.1.0.84'
_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
github-actions / Unit Test Results
test_adis16475_sample_rate (test.test_adis16475_p) failed
results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7fcc2f315150>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b2240>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f315150>, uri = 'ip:10.1.0.84'
_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
github-actions / Unit Test Results
test_adis16475_firmware_date (test.test_adis16475_p) failed
results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7fcc2f1354b0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1dc4c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f1354b0>, uri = 'ip:10.1.0.84'
_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
github-actions / Unit Test Results
test_adis16475_firmware_revision (test.test_adis16475_p) failed
results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7fcc2f176200>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f2b6f40>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f176200>, uri = 'ip:10.1.0.84'
_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
github-actions / Unit Test Results
test_adis16475_serial_number (test.test_adis16475_p) failed
results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7fcc2f15cd90>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b1ac0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f15cd90>, uri = 'ip:10.1.0.84'
_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
github-actions / Unit Test Results
test_adis16476_conv_data (test.test_adis16475_p) failed
results.xml
Raw output
self = <adi.adis16475.adis16475 object at 0x7fcc2f1bca90>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b1240>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
iio_uri = 'ip:10.1.0.84'
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 0x7fcc2f1bca90>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f171810>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f010040>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f171810>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f3d9090>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f0475c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f3d9090>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f24f2e0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f0471c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f24f2e0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f01ee30>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f012340>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7fcc33823b50>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f01ee30>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f237d00>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f0467c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/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 0x7fcc33823eb0>
iio_uri = 'ip:10.1.0.84', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}
val = [8.5, 12.5, 29.0, 20.0, 5.5, 12.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 0x7fcc2f237d00>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f259990>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b0ec0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/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 0x7fcc33823eb0>
iio_uri = 'ip:10.1.0.84', classname = 'adi.adrv9002'
attr = 'rx_hardwaregain_chan0'
depends = {'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}
val = [6.5, 24.5, 22.0, 8.5, 31.5, 7.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 0x7fcc2f259990>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f1ce110>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f010040>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/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 0x7fcc33823eb0>
iio_uri = 'ip:10.1.0.84', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan0', depends = {'atten_control_mode_chan0': 'spi'}
val = [-31.25, -32.55, -24.45, -13.65, -16.85, -9.95, ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, val, depends",
[
(
"rx_hardwaregain_chan0",
random_values_in_range(0, 34, 0.5, 10),
dict(gain_control_mode_chan0="spi", rx_ensm_mode_chan0="rf_enabled",),
),
(
"rx_hardwaregain_chan0",
random_values_in_range(0, 34, 0.5, 10),
dict(gain_control_mode_chan1="spi", rx_ensm_mode_chan1="rf_enabled",),
),
(
"tx_hardwaregain_chan0",
random_values_in_range(-40, 0, 0.05, 10),
dict(atten_control_mode_chan0="spi"),
),
(
"tx_hardwaregain_chan1",
random_values_in_range(-40, 0, 0.05, 10),
dict(atten_control_mode_chan1="spi"),
),
],
)
def test_adrv9002_hardware_gain(
test_attribute_multiple_values_with_depends, iio_uri, classname, attr, depends, val
):
> test_attribute_multiple_values_with_depends(
iio_uri, classname, attr, depends, val, 0
)
test/test_adrv9002_p.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:250: in attribute_multiple_values_with_depends
assert dev_interface(uri, classname, depends[p], p, 0)
test/common.py:103: in dev_interface
sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
???
adi/adrv9002.py:46: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.adrv9002.adrv9002 object at 0x7fcc2f1ce110>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f0de5f0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f045fc0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/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 0x7fcc33823eb0>
iio_uri = 'ip:10.1.0.84', classname = 'adi.adrv9002'
attr = 'tx_hardwaregain_chan1', depends = {'atten_control_mode_chan1': 'spi'}
val = [-38.45, -7.95, -6.25, -4.3, -38.2, -38.7, ...]
@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 0x7fcc2f0de5f0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f00d360>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1dc4c0>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values = <function attribute_multiple_values at 0x7fcc33823e20>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f00d360>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f1bd4e0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f046140>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values = <function attribute_multiple_values at 0x7fcc33823e20>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f1bd4e0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f175ed0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f1b2240>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values = <function attribute_multiple_values at 0x7fcc33823e20>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f175ed0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2f2372b0>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f047b40>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values = <function attribute_multiple_values at 0x7fcc33823e20>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2f2372b0>, uri = 'ip:10.1.0.84'
_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
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 0x7fcc2effdd20>, uri = 'ip:10.1.0.84'
_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.10.13/x64/lib/python3.10/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fcc2f047340>
func = <_FuncPtr object at 0x7fcc52346740>, arguments = (b'ip:10.1.0.84',)
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.10.13/x64/lib/python3.10/site-packages/iio.py:56: BrokenPipeError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values = <function attribute_multiple_values at 0x7fcc33823e20>
iio_uri = 'ip:10.1.0.84', 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 0x7fcc2effdd20>, uri = 'ip:10.1.0.84'
_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