Enable emulation testing with pytest-xdist support #601
283 fail, 1 250 skipped, 79 pass in 1m 49s
1 612 tests 79 ✅ 1m 49s ⏱️
1 suites 1 250 💤
1 files 283 ❌
Results for commit 79097f9.
Annotations
Check warning on line 0 in test.test_ad9084
github-actions / Test Results
test_ad9084_attr[rx_channel_nco_phases--180000-180000-1-1-10-adi.ad9084] (test.test_ad9084) failed
results.xml [took 3s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa60316210>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa6037f830>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7ffa6dc46c20>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084'
attr = 'rx_channel_nco_phases', start = -180000, stop = 180000, step = 1
tol = 1, repeats = 10
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats",
[
("rx_main_nco_frequencies", -2000000000, 2000000000, 1, 3, 10),
("tx_main_nco_frequencies", -6000000000, 6000000000, 1, 3, 10),
("rx_channel_nco_frequencies", -500000000, 500000000, 1, 3, 10),
("tx_channel_nco_frequencies", -750000000, 750000000, 1, 3, 10),
("rx_main_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_phases", -180000, 180000, 1, 1, 10),
("rx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
("tx_channel_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
],
)
def test_ad9084_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
):
test_attribute_single_value(
> iio_uri, classname, attr, start, stop, step, tol, repeats
)
test/test_ad9084.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa60316210>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance0-capacitance2-calibbias-values7-0.5-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 3s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbacc6d0>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbb0c710>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance0-capacitance2'
attr = 'calibbias', values = [0, 62745, 125, 50], tol = 0.5, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbacc6d0>, uri = 'ip:10.1.1.168:30432'
_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_ad9084
github-actions / Test Results
test_ad9084_attr[tx_channel_nco_phases--180000-180000-1-1-10-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa603d33d0>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa602e6440>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7ffa6dc46c20>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084'
attr = 'tx_channel_nco_phases', start = -180000, stop = 180000, step = 1
tol = 1, repeats = 10
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats",
[
("rx_main_nco_frequencies", -2000000000, 2000000000, 1, 3, 10),
("tx_main_nco_frequencies", -6000000000, 6000000000, 1, 3, 10),
("rx_channel_nco_frequencies", -500000000, 500000000, 1, 3, 10),
("tx_channel_nco_frequencies", -750000000, 750000000, 1, 3, 10),
("rx_main_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_phases", -180000, 180000, 1, 1, 10),
("rx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
("tx_channel_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
],
)
def test_ad9084_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
):
test_attribute_single_value(
> iio_uri, classname, attr, start, stop, step, tol, repeats
)
test/test_ad9084.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa603d33d0>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance1-calibbias-values8-0.5-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbb7e090>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccba029e0>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance1', attr = 'calibbias'
values = [0, 62745, 125, 50], tol = 0.5, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbb7e090>, uri = 'ip:10.1.1.168:30432'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[tx_hardwaregain_chan0--89.75-0.0-0.25-0-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 3s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf443841d0>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf442d74d0>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364'
attr = 'tx_hardwaregain_chan0', start = -89.75, stop = 0.0, step = 0.25, tol = 0
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf443841d0>, uri = 'ip:10.1.1.168:30433'
_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_ad9084
github-actions / Test Results
test_ad9084_attr[tx_main_nco_test_tone_scales-0.0-1.0-0.01-0.01-10-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa5ffea250>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa602e6dd0>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7ffa6dc46c20>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084'
attr = 'tx_main_nco_test_tone_scales', start = 0.0, stop = 1.0, step = 0.01
tol = 0.01, repeats = 10
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats",
[
("rx_main_nco_frequencies", -2000000000, 2000000000, 1, 3, 10),
("tx_main_nco_frequencies", -6000000000, 6000000000, 1, 3, 10),
("rx_channel_nco_frequencies", -500000000, 500000000, 1, 3, 10),
("tx_channel_nco_frequencies", -750000000, 750000000, 1, 3, 10),
("rx_main_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_phases", -180000, 180000, 1, 1, 10),
("rx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
("tx_channel_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
],
)
def test_ad9084_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
):
test_attribute_single_value(
> iio_uri, classname, attr, start, stop, step, tol, repeats
)
test/test_ad9084.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa5ffea250>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance1-capacitance3-calibbias-values9-0.5-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbbb9290>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbb0c440>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance1-capacitance3'
attr = 'calibbias', values = [0, 62745, 125, 50], tol = 0.5, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbbb9290>, uri = 'ip:10.1.1.168:30432'
_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_ad9084
github-actions / Test Results
test_ad9084_attr[tx_channel_nco_test_tone_scales-0.0-1.0-0.01-0.01-10-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa603a0710>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa6037f320>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7ffa6dc46c20>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084'
attr = 'tx_channel_nco_test_tone_scales', start = 0.0, stop = 1.0, step = 0.01
tol = 0.01, repeats = 10
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats",
[
("rx_main_nco_frequencies", -2000000000, 2000000000, 1, 3, 10),
("tx_main_nco_frequencies", -6000000000, 6000000000, 1, 3, 10),
("rx_channel_nco_frequencies", -500000000, 500000000, 1, 3, 10),
("tx_channel_nco_frequencies", -750000000, 750000000, 1, 3, 10),
("rx_main_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_phases", -180000, 180000, 1, 1, 10),
("rx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_channel_nco_phases", -180000, 180000, 1, 1, 10),
("tx_main_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
("tx_channel_nco_test_tone_scales", 0.0, 1.0, 0.01, 0.01, 10),
],
)
def test_ad9084_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
):
test_attribute_single_value(
> iio_uri, classname, attr, start, stop, step, tol, repeats
)
test/test_ad9084.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa603a0710>, uri = 'ip:10.1.1.168:30434'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[rx_lo-70000000-6000000000-1-8-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf43fd32d0>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf44319dd0>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364', attr = 'rx_lo'
start = 70000000, stop = 6000000000, step = 1, tol = 8
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf43fd32d0>, uri = 'ip:10.1.1.168:30433'
_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_ad9084
github-actions / Test Results
test_ad9084_tx_data[0-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa7aed02d0>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa6036c8c0>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_dma_tx = <function dma_tx at 0x7ffa6d503290>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 0
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
def test_ad9084_tx_data(test_dma_tx, iio_uri, classname, channel):
> test_dma_tx(iio_uri, classname, channel)
test/test_ad9084.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/dma_tests.py:100: in dma_tx
sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
???
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa7aed02d0>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance0-offset-values10-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbaf4a50>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbbb8320>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance0', attr = 'offset'
values = ['8127504'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbaf4a50>, uri = 'ip:10.1.1.168:30432'
_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_ad9084
github-actions / Test Results
test_ad9084_tx_data[1-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa603c9310>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa603a5c20>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_dma_tx = <function dma_tx at 0x7ffa6d503290>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 1
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
def test_ad9084_tx_data(test_dma_tx, iio_uri, classname, channel):
> test_dma_tx(iio_uri, classname, channel)
test/test_ad9084.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/dma_tests.py:100: in dma_tx
sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
???
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa603c9310>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance1-offset-values11-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccba07e10>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbbb87a0>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance1', attr = 'offset'
values = ['8127504'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccba07e10>, uri = 'ip:10.1.1.168:30432'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[tx_lo-47000000-6000000000-1-8-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf44355f10>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf442bb9e0>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364', attr = 'tx_lo'
start = 47000000, stop = 6000000000, step = 1, tol = 8
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf44355f10>, uri = 'ip:10.1.1.168:30433'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance0-offset-values12-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbbf1450>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbb0c290>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance0', attr = 'offset'
values = ['7111566'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbbf1450>, uri = 'ip:10.1.1.168:30432'
_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_ad9084
github-actions / Test Results
test_ad9084_tx_data[2-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa5fdd9210>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa602e6e60>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_dma_tx = <function dma_tx at 0x7ffa6d503290>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
def test_ad9084_tx_data(test_dma_tx, iio_uri, classname, channel):
> test_dma_tx(iio_uri, classname, channel)
test/test_ad9084.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/dma_tests.py:100: in dma_tx
sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
???
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa5fdd9210>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance1-offset-values13-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccba0ee50>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbb4f320>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance1', attr = 'offset'
values = ['7111566'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccba0ee50>, uri = 'ip:10.1.1.168:30432'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance0-offset-values14-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccbacf410>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccbb4f8c0>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance0', attr = 'offset'
values = ['5079690'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccbacf410>, uri = 'ip:10.1.1.168:30432'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[sample_rate-2084000-61440000-1-4-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf43ecc690>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf442bb5f0>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364', attr = 'sample_rate'
start = 2084000, stop = 61440000, step = 1, tol = 4
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf43ecc690>, uri = 'ip:10.1.1.168:30433'
_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_ad9084
github-actions / Test Results
test_ad9084_tx_data[3-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa603cf790>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa603a5ef0>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_dma_tx = <function dma_tx at 0x7ffa6d503290>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 3
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
def test_ad9084_tx_data(test_dma_tx, iio_uri, classname, channel):
> test_dma_tx(iio_uri, classname, channel)
test/test_ad9084.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/dma_tests.py:100: in dma_tx
sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
???
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa603cf790>, uri = 'ip:10.1.1.168:30434'
_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_ad7746
github-actions / Test Results
test_ad7746_attr_multiple_val[capacitance1-offset-values15-1-2-ad7746-adi.ad7746] (test.test_ad7746) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fbccb5e8710>, uri = 'ip:10.1.1.168:30432'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7fbccba02a70>
func = <_FuncPtr object at 0x7fbce451ca10>
arguments = (b'ip:10.1.1.168:30432',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_multiple_values_device_channel = <function attribute_multiple_values_device_channel at 0x7fbcd8c35f80>
iio_uri = 'ip:10.1.1.168:30432', classname = 'adi.ad7746'
device_name = 'ad7746', channel = 'capacitance1', attr = 'offset'
values = ['5079690'], tol = 1, repeats = 2
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("device_name", [(device_name)])
@pytest.mark.parametrize(
"channel, attr, values, tol, repeats",
[
(VIN, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(VIN_VDD, "sampling_frequency", ["50", "31", "16", "8"], 0.5, 2),
(
CIN1,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN1_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(
CIN2_DIFF,
"sampling_frequency",
["91", "84", "50", "26", "16", "13", "11", "9"],
0.5,
2,
),
(CIN1, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN2_DIFF, "calibbias", [0, 62745, 125, 50], 0.5, 2),
(CIN1, "offset", ["8127504"], 1, 2),
(CIN2, "offset", ["8127504"], 1, 2),
(CIN1, "offset", ["7111566"], 1, 2),
(CIN2, "offset", ["7111566"], 1, 2),
(CIN1, "offset", ["5079690"], 1, 2),
(CIN2, "offset", ["5079690"], 1, 2),
],
)
def test_ad7746_attr_multiple_val(
test_attribute_multiple_values_device_channel,
iio_uri,
classname,
device_name,
channel,
attr,
values,
tol,
repeats,
):
test_attribute_multiple_values_device_channel(
> iio_uri, classname, device_name, channel, attr, values, tol, repeats
)
test/test_ad7746.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:613: in attribute_multiple_values_device_channel
assert dev_interface_device_name_channel(
test/common.py:212: in dev_interface_device_name_channel
+ "']"
<string>:1: in <module>
???
adi/ad7746.py:22: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad7746.ad7746 object at 0x7fbccb5e8710>, uri = 'ip:10.1.1.168:30432'
_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_ad9084
github-actions / Test Results
test_ad9084_cyclic_buffers[param_set0-0-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa60391ad0>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa603a59e0>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_cyclic_buffer = <function cyclic_buffer at 0x7ffa629d4950>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 0
param_set = {'rx_channel_nco_frequencies': [0, 0, 0, 0], 'rx_channel_nco_phases': [0, 0, 0, 0], 'rx_main_nco_frequencies': [1000000000, 1000000000, 1000000000, 1000000000], 'rx_main_nco_phases': [0, 0, 0, 0], ...}
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
@pytest.mark.parametrize(
"param_set",
[
dict(
rx_nyquist_zone=["odd", "odd", "odd", "odd"],
tx_channel_nco_gain_scales=[0.5, 0.5, 0.5, 0.5],
rx_main_nco_frequencies=[1000000000, 1000000000, 1000000000, 1000000000],
tx_main_nco_frequencies=[1000000000, 1000000000, 1000000000, 1000000000],
rx_channel_nco_frequencies=[0, 0, 0, 0],
tx_channel_nco_frequencies=[0, 0, 0, 0],
rx_main_nco_phases=[0, 0, 0, 0],
tx_main_nco_phases=[0, 0, 0, 0],
rx_channel_nco_phases=[0, 0, 0, 0],
tx_channel_nco_phases=[0, 0, 0, 0],
tx_channel_nco_test_tone_en=[0, 0, 0, 0],
tx_main_nco_test_tone_en=[0, 0, 0, 0],
)
],
)
def test_ad9084_cyclic_buffers(
test_cyclic_buffer, iio_uri, classname, channel, param_set
):
> param_set = scale_field(param_set, iio_uri)
test/test_ad9084.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/test_ad9084.py:14: in scale_field
dev = adi.ad9084(uri=iio_uri)
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa60391ad0>, uri = 'ip:10.1.1.168:30434'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[loopback-0-0-1-0-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf43feeb90>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf442bbef0>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364', attr = 'loopback'
start = 0, stop = 0, step = 1, tol = 0
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf43feeb90>, uri = 'ip:10.1.1.168:30433'
_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_ad9084
github-actions / Test Results
test_ad9084_cyclic_buffers[param_set0-1-adi.ad9084] (test.test_ad9084) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7ffa5fff63d0>, uri = 'ip:10.1.1.168:30434'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7ffa6037f320>
func = <_FuncPtr object at 0x7ffa78b36a10>
arguments = (b'ip:10.1.1.168:30434',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_cyclic_buffer = <function cyclic_buffer at 0x7ffa629d4950>
iio_uri = 'ip:10.1.1.168:30434', classname = 'adi.ad9084', channel = 1
param_set = {'rx_channel_nco_frequencies': [0, 0, 0, 0], 'rx_channel_nco_phases': [0, 0, 0, 0], 'rx_main_nco_frequencies': [1000000000, 1000000000, 1000000000, 1000000000], 'rx_main_nco_phases': [0, 0, 0, 0], ...}
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3])
@pytest.mark.parametrize(
"param_set",
[
dict(
rx_nyquist_zone=["odd", "odd", "odd", "odd"],
tx_channel_nco_gain_scales=[0.5, 0.5, 0.5, 0.5],
rx_main_nco_frequencies=[1000000000, 1000000000, 1000000000, 1000000000],
tx_main_nco_frequencies=[1000000000, 1000000000, 1000000000, 1000000000],
rx_channel_nco_frequencies=[0, 0, 0, 0],
tx_channel_nco_frequencies=[0, 0, 0, 0],
rx_main_nco_phases=[0, 0, 0, 0],
tx_main_nco_phases=[0, 0, 0, 0],
rx_channel_nco_phases=[0, 0, 0, 0],
tx_channel_nco_phases=[0, 0, 0, 0],
tx_channel_nco_test_tone_en=[0, 0, 0, 0],
tx_main_nco_test_tone_en=[0, 0, 0, 0],
)
],
)
def test_ad9084_cyclic_buffers(
test_cyclic_buffer, iio_uri, classname, channel, param_set
):
> param_set = scale_field(param_set, iio_uri)
test/test_ad9084.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/test_ad9084.py:14: in scale_field
dev = adi.ad9084(uri=iio_uri)
adi/ad9084.py:85: in __init__
context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad9084.ad9084 object at 0x7ffa5fff63d0>, uri = 'ip:10.1.1.168:30434'
_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_ad9364_p
github-actions / Test Results
test_ad9364_attr[loopback-1-1-1-0-adi.ad9364] (test.test_ad9364_p) failed
results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad936x.ad9364 object at 0x7faf43ffd790>, uri = 'ip:10.1.1.168:30433'
_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.7.17/x64/lib/python3.7/site-packages/iio.py:1358: in __init__
self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <iio.LP__Context object at 0x7faf442a3320>
func = <_FuncPtr object at 0x7faf5cb85a10>
arguments = (b'ip:10.1.1.168:30433',)
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 ConnectionRefusedError: [Errno 111] Connection refused
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/iio.py:56: ConnectionRefusedError
During handling of the above exception, another exception occurred:
test_attribute_single_value = <function attribute_single_value at 0x7faf51c86c20>
iio_uri = 'ip:10.1.1.168:30433', classname = 'adi.ad9364', attr = 'loopback'
start = 1, stop = 1, step = 1, tol = 0
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol",
[
("tx_hardwaregain_chan0", -89.75, 0.0, 0.25, 0),
("rx_lo", 70000000, 6000000000, 1, 8),
("tx_lo", 47000000, 6000000000, 1, 8),
("sample_rate", 2084000, 61440000, 1, 4),
("loopback", 0, 0, 1, 0),
("loopback", 1, 1, 1, 0),
("loopback", 2, 2, 1, 0),
],
)
def test_ad9364_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_ad9364_p.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:70: 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/rx_tx.py:734: in __init__
rx_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:653: in __init__
shared_def.__init__(self, *args, **kwargs)
adi/rx_tx.py:603: in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ad936x.ad9364 object at 0x7faf43ffd790>, uri = 'ip:10.1.1.168:30433'
_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