summaryrefslogtreecommitdiff
path: root/tests/base.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-09-03 00:06:00 +0100
committerDave Hibberd <hibby@debian.org>2024-09-03 00:06:00 +0100
commitb9087e63874333e5634eb5cc22c7ca0d4505e462 (patch)
treebe11dfc347f388a5186ebf15cc5c88b32c499a30 /tests/base.py
parent03104a5471641c06e73fb3cbc994f59ba4a3cfda (diff)
parentf16e6e8f9f3ea890e9a6297166ef5a30ce17b759 (diff)
Update upstream source from tag 'upstream/20240901'
Update to upstream version '20240901' with Debian dir f21d6b7b3da6a03e79bb475980833acc530011ff
Diffstat (limited to 'tests/base.py')
-rw-r--r--tests/base.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/base.py b/tests/base.py
index 093bede..c2033aa 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -174,15 +174,16 @@ class DriverTest(unittest.TestCase):
(a.tmode == "Cross" and
rx_mode == "Tone"))):
continue
- elif k == "dtcs" and not (
- (a.tmode == "DTCS" and not self.rf.has_rx_dtcs) or
- (a.tmode == "Cross" and tx_mode == "DTCS") or
- (a.tmode == "Cross" and rx_mode == "DTCS" and
- not self.rf.has_rx_dtcs)):
+ elif k == "dtcs" and (a.tmode != 'DTCS' or
+ (a.tmode == 'Cross' and tx_mode != 'DTCS')):
+ # If we are not in a tmode where a transmit DTCS code is
+ # required, we do not care if the code is persisted.
continue
elif k == "rx_dtcs" and (not self.rf.has_rx_dtcs or
not (a.tmode == "Cross" and
rx_mode == "DTCS")):
+ # If we are not in a tmode where a receive DTCS code is
+ # required, we do not care if the code is persisted.
continue
elif k == "offset" and not a.duplex:
continue