diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:28:00 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:28:00 +0100 |
| commit | 824c4dbfc89ab108ccac0b32cec7950744d2dc41 (patch) | |
| tree | 551a84a22eaec580bcd1a0402302504714347d94 /tests/base.py | |
| parent | 57aacec614eade6d835418db7740ab611f22773d (diff) | |
| parent | 0496ffac85e663ba4c9a14d2d4eb300a3c017ae2 (diff) | |
Update upstream source from tag 'upstream/20240413'
Update to upstream version '20240413'
with Debian dir 62c7de265ce7a67bd3a5b9926035f7ef2243b9f4
Diffstat (limited to 'tests/base.py')
| -rw-r--r-- | tests/base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/base.py b/tests/base.py index 0cf8d36..093bede 100644 --- a/tests/base.py +++ b/tests/base.py @@ -132,6 +132,14 @@ class DriverTest(unittest.TestCase): def assertEqualMem(self, a, b, ignore=None): if a.tmode == "Cross": tx_mode, rx_mode = a.cross_mode.split("->") + if ignore is None: + ignore = [] + + if a.duplex == b.duplex == 'off': + # If we're asking for duplex=off, we should not obsess over the + # driver keeping track of our offset, as it may use the offset + # field to manage the TX behavior + ignore.append('offset') a_vals = {} b_vals = {} |
