[chirp_devel] [PATCH 3 of 3] [brute_force test] Provide credible frequencies in all cases
Marco Filippi IZ3GME
Sat Sep 28 03:30:54 PDT 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1380364020 -7200
# Node ID 14064cca9c49bc4000809b77b90bfcbfa46c2631
# Parent 2666a638f5265b9ae4b0701683a19361e14e5752
[brute_force test] Provide credible frequencies in all cases
Discovered while implementing #1149
diff -r 2666a638f526 -r 14064cca9c49 tests/run_tests
--- a/tests/run_tests Sat Sep 28 12:25:13 2013 +0200
+++ b/tests/run_tests Sat Sep 28 12:27:00 2013 +0200
@@ -358,6 +358,8 @@
continue
if duplex == "split" and not rf.can_odd_split:
raise TestFailedError("Forgot to set rf.can_odd_split!")
+ if duplex == "split":
+ m.offset = rf.valid_bands[0][1] - 100000
m.duplex = duplex
self.set_and_compare(m)
@@ -414,7 +416,7 @@
if rf.valid_bands:
m.freq = rf.valid_bands[0][0] + 100000
else:
- m.freq = 146.52
+ m.freq = 146520000
if m.freq < 30000000 and "AM" in rf.valid_modes:
m.mode = "AM"
return m
@@ -429,7 +431,10 @@
if 12.5 in rf.valid_tuning_steps and \
"split" in rf.valid_duplexes:
m = clean_mem()
- m.offset = 151137500
+ if rf.valid_bands:
+ m.offset = rf.valid_bands[0][1] - 12500
+ else:
+ m.offset = 151137500
m.duplex = "split"
self.set_and_compare(m)
More information about the chirp_devel
mailing list