Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable emulation testing with pytest-xdist support #601

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Enable emulation testing with pytest-xdist support

79097f9
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Enable emulation testing with pytest-xdist support #601

Enable emulation testing with pytest-xdist support
79097f9
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Oct 1, 2024 in 0s

291 fail, 1 250 skipped, 71 pass in 1m 9s

1 612 tests      71 ✅  1m 9s ⏱️
    1 suites  1 250 💤
    1 files      291 ❌

Results for commit 79097f9.

Annotations

Check warning on line 0 in test.test_ad9084

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_str_attr[rx_test_mode-val1-adi.ad9084] (test.test_ad9084) failed

results.xml [took 3s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7f66a4214850>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f66a3938f40>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_multiple_values = <function attribute_multiple_values at 0x7f66b23c9160>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084', attr = 'rx_test_mode'
val = ['midscale_short', 'pos_fullscale', 'neg_fullscale', 'checkerboard', 'pn23', 'pn9', ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("rx_nyquist_zone", ["even", "odd"]),
            (
                "rx_test_mode",
                [
                    "midscale_short",
                    "pos_fullscale",
                    "neg_fullscale",
                    "checkerboard",
                    "pn23",
                    "pn9",
                    "one_zero_toggle",
                    "user",
                    "pn7",
                    "pn15",
                    "pn31",
                    "ramp",
                    "off",
                ],
            ),
        ],
    )
    def test_ad9084_str_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad9084.py:51: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:221: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:103: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad9084.py:85: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad9084.ad9084 object at 0x7f66a4214850>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[voltage0-sampling_frequency-values0-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 0x7fdfa66aaa00>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdfa5d1d940>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'voltage0', attr = 'sampling_frequency'
values = ['50', '31', '16', '8'], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdfa66aaa00>, uri = 'ip:10.1.0.88: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_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad2s1210_attr[excitation_frequency-2000-20000-250-1-10-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml [took 3s]
Raw output
AttributeError: 'NoneType' object has no attribute 'channels'
test_attribute_single_value = <function attribute_single_value at 0x7fb0717c7e50>
iio_uri = 'ip:10.1.0.88:30431', classname = 'adi.ad2s1210'
attr = 'excitation_frequency', start = 2000, stop = 20000, step = 250, tol = 1
repeats = 10

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats",
        [("excitation_frequency", 2000, 20000, 250, 1, 10),],
    )
    def test_ad2s1210_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_ad2s1210.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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>
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7fb05ec2e760>
uri = 'ip:10.1.0.88:30431'

    def __init__(self, uri=""):
        context_manager.__init__(self, uri, self._device_name)
    
        self._rxadc = self._ctrl = self._ctx.find_device(self._device_name)
        self._rx_channel_names = []
    
>       for ch in self._ctrl.channels:
E       AttributeError: 'NoneType' object has no attribute 'channels'

adi/ad2s1210.py:25: AttributeError

Check warning on line 0 in test.test_ad9084

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[rx_main_nco_frequencies--2000000000-2000000000-1-3-10-adi.ad9084] (test.test_ad9084) failed

results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7f66a38b5460>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f669be10640>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'rx_main_nco_frequencies', start = -2000000000, stop = 2000000000
step = 1, tol = 3, 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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f66a38b5460>, uri = 'ip:10.1.0.88: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_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-True-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'channels'
test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7fb0717c7ee0>
iio_uri = 'ip:10.1.0.88:30431', classname = 'adi.ad2s1210'
attr = 'hysteresis_enable', value = True

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:86: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7fb05ec27640>
uri = 'ip:10.1.0.88:30431'

    def __init__(self, uri=""):
        context_manager.__init__(self, uri, self._device_name)
    
        self._rxadc = self._ctrl = self._ctx.find_device(self._device_name)
        self._rx_channel_names = []
    
>       for ch in self._ctrl.channels:
E       AttributeError: 'NoneType' object has no attribute 'channels'

adi/ad2s1210.py:25: AttributeError

Check warning on line 0 in test.test_ad9364_p

See this annotation in the file changed.

@github-actions 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 0x7fe4bce171c0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4c4cb0b40>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4bce171c0>, uri = 'ip:10.1.0.88: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_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-False-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'channels'
test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7fb0717c7ee0>
iio_uri = 'ip:10.1.0.88:30431', classname = 'adi.ad2s1210'
attr = 'hysteresis_enable', value = False

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:86: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7fb05ae351f0>
uri = 'ip:10.1.0.88:30431'

    def __init__(self, uri=""):
        context_manager.__init__(self, uri, self._device_name)
    
        self._rxadc = self._ctrl = self._ctx.find_device(self._device_name)
        self._rx_channel_names = []
    
>       for ch in self._ctrl.channels:
E       AttributeError: 'NoneType' object has no attribute 'channels'

adi/ad2s1210.py:25: AttributeError

Check warning on line 0 in test.test_ad9084

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[tx_main_nco_frequencies--6000000000-6000000000-1-3-10-adi.ad9084] (test.test_ad9084) failed

results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7f66a383cfd0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f66a3938b40>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'tx_main_nco_frequencies', start = -6000000000, stop = 6000000000
step = 1, tol = 3, 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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f66a383cfd0>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[voltage1-sampling_frequency-values1-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 0x7fdf9dec8490>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9dee7540>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'voltage1', attr = 'sampling_frequency'
values = ['50', '31', '16', '8'], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9dec8490>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0x7fe4c4c9ebe0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4bcd60f40>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4c4c9ebe0>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[capacitance0-sampling_frequency-values2-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 0x7fdfa6671e50>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9de28540>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'capacitance0', attr = 'sampling_frequency'
values = ['91', '84', '50', '26', '16', '13', ...], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdfa6671e50>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[rx_channel_nco_frequencies--500000000-500000000-1-3-10-adi.ad9084] (test.test_ad9084) failed

results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7f66a3ca3f10>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f669bddc7c0>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'rx_channel_nco_frequencies', start = -500000000, stop = 500000000
step = 1, tol = 3, 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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f66a3ca3f10>, uri = 'ip:10.1.0.88: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_ad9364_p

See this annotation in the file changed.

@github-actions 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 0x7fe4bccfe910>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4bce15d40>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4bccfe910>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[capacitance0-capacitance2-sampling_frequency-values3-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 0x7fdf9deea1c0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9de28c40>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'capacitance0-capacitance2', attr = 'sampling_frequency'
values = ['91', '84', '50', '26', '16', '13', ...], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9deea1c0>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[tx_channel_nco_frequencies--750000000-750000000-1-3-10-adi.ad9084] (test.test_ad9084) failed

results.xml [took 0s]
Raw output
Exception: No device found
self = <adi.ad9084.ad9084 object at 0x7f669bdf2ca0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f669bec2b40>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'tx_channel_nco_frequencies', start = -750000000, stop = 750000000
step = 1, tol = 3, 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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f669bdf2ca0>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[capacitance1-sampling_frequency-values4-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 0x7fdf9de76220>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9dec2ec0>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'capacitance1', attr = 'sampling_frequency'
values = ['91', '84', '50', '26', '16', '13', ...], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9de76220>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0x7fe4bcd91490>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4bcd25e40>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4bcd91490>, uri = 'ip:10.1.0.88: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_ad9084

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[rx_main_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 0x7f66a3840280>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f669bec2bc0>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'rx_main_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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f66a3840280>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[capacitance1-capacitance3-sampling_frequency-values5-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 0x7fdfa5c9d190>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9dec2ac0>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'capacitance1-capacitance3', attr = 'sampling_frequency'
values = ['91', '84', '50', '26', '16', '13', ...], 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdfa5c9d190>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0x7fe4c4c36490>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4c4cb0dc0>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4c4c36490>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7746_attr_multiple_val[capacitance0-calibbias-values6-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 0x7fdf9de5a520>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9dee1ec0>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88:30432', classname = 'adi.ad7746', device_name = 'ad7746'
channel = 'capacitance0', 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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9de5a520>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad9084_attr[tx_main_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 0x7f66a4289910>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7f669bea9dc0>
func = <_FuncPtr object at 0x7f66bdf9b880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7f66b23c7e50>
iio_uri = 'ip:10.1.0.88:30433', classname = 'adi.ad9084'
attr = 'tx_main_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:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f66a4289910>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0s]
Raw output
Exception: No device found
self = <adi.ad7746.ad7746 object at 0x7fdf9de9e4f0>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdf9dee1ac0>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88: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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9de9e4f0>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0x7fe4bce1fe80>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fe4bccc42c0>
func = <_FuncPtr object at 0x7fe4deef8880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:56: ConnectionRefusedError

During handling of the above exception, another exception occurred:

test_attribute_single_value = <function attribute_single_value at 0x7fe4d37c6e50>
iio_uri = 'ip:10.1.0.88:30434', 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 0x7fe4bce1fe80>, uri = 'ip:10.1.0.88: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

See this annotation in the file changed.

@github-actions 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 0x7fdf9dc12a30>, uri = 'ip:10.1.0.88: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.8.18/x64/lib/python3.8/site-packages/iio.py:1358: in __init__
    self._context = _new_uri(_context.encode("ascii"))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = <iio.LP__Context object at 0x7fdfa5c23840>
func = <_FuncPtr object at 0x7fdfbbf62880>, arguments = (b'ip:10.1.0.88: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.8.18/x64/lib/python3.8/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 0x7fdfb47c8700>
iio_uri = 'ip:10.1.0.88: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:180: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:613: in attribute_multiple_values_device_channel
    assert dev_interface_device_name_channel(
test/common.py:204: in dev_interface_device_name_channel
    sdr = eval(
<string>:1: in <module>
    ???
adi/ad7746.py:22: in __init__
    context_manager.__init__(self, uri, self._device_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7746.ad7746 object at 0x7fdf9dc12a30>, uri = 'ip:10.1.0.88: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