diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:27:52 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-13 21:27:52 +0100 |
| commit | 0496ffac85e663ba4c9a14d2d4eb300a3c017ae2 (patch) | |
| tree | 22850f3993686d89159885f516bfb4381ffc0906 /tests/base.py | |
| parent | fc438e6a84402e621877f6c30097442af46f122b (diff) | |
New upstream version 20240413upstream/20240413
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 = {} |
