diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-08-27 23:17:59 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-08-27 23:17:59 +0100 |
| commit | ea5898c0bff9b0b52c87408027880f5d7049bdec (patch) | |
| tree | 2d76776f577a99039e0618ae6d8d26014d7c8e8f /tests/test_copy_all.py | |
| parent | 0496ffac85e663ba4c9a14d2d4eb300a3c017ae2 (diff) | |
New upstream version 20240827upstream/20240827
Diffstat (limited to 'tests/test_copy_all.py')
| -rw-r--r-- | tests/test_copy_all.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_copy_all.py b/tests/test_copy_all.py index 0888667..92c1fc1 100644 --- a/tests/test_copy_all.py +++ b/tests/test_copy_all.py @@ -1,5 +1,6 @@ import os +from chirp import chirp_common from chirp.drivers import generic_csv from chirp import import_logic from tests import base @@ -47,6 +48,16 @@ class TestCaseCopyAll(base.DriverTest): except import_logic.DestNotCompatible: continue + warn, err = chirp_common.split_validation_msgs( + self.radio.validate_memory(dst_mem)) self.radio.set_memory(dst_mem) + + if warn: + # If the radio warned about something, we can assume it's + # about duplex (i.e. tx inhibit) or mode (i.e. AM only on + # airband) + ignore = ['duplex', 'mode'] + else: + ignore = None ret_mem = self.radio.get_memory(dst_number) - self.assertEqualMem(dst_mem, ret_mem) + self.assertEqualMem(dst_mem, ret_mem, ignore=ignore) |
