summaryrefslogtreecommitdiff
path: root/tests/base.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-11 22:37:18 +0000
committerDave Hibberd <hibby@debian.org>2025-11-11 22:37:18 +0000
commit25dcfa66fbb0e5ac585e46f2c857a12e69cae53d (patch)
treeee9cd3a68e25c341f173f15920e2302cf2098864 /tests/base.py
parentf58db2568dc1cfa61d9de3db50ccf19f0b4f596a (diff)
parent261582ca78b59d466b32f3b5ab0e0e20fd314d26 (diff)
Update upstream source from tag 'upstream/20251108'
Update to upstream version '20251108' with Debian dir 04f8947be44b2d360c5384e596833f548cc57de8
Diffstat (limited to 'tests/base.py')
-rw-r--r--tests/base.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/base.py b/tests/base.py
index af29310..c6ed191 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -79,6 +79,16 @@ class DriverTest(unittest.TestCase):
attempt = 0
for band_lo, band_hi in self.rf.valid_bands:
m.freq = band_lo
+ if chirp_common.is_airband(m.freq):
+ # Air band requires special step handling.
+ # First see if we can pick a 2m frequency to avoid airband
+ # details.
+ if chirp_common.in_range(146520000, self.rf.valid_bands):
+ m.freq = 146520000
+ else:
+ # Nope, so go 25kHz up from the bottom of the band to
+ # avoid 8.33kHz issues
+ m.freq += 25000
if self.rf.valid_tuning_steps:
# If we have valid tuning steps, go one step above the
# bottom of the band. Select a different tuning_step each