diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:45 +0100 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:45 +0100 |
| commit | 42b1373eff59af2aebb218ded3d2d55cc96dc630 (patch) | |
| tree | d6e7e435fa41c65fff7a73dd7dc99bb4a12da5c8 /tests/run_tests.py | |
| parent | 176c8e29d64892072697c5d30513204773545a9b (diff) | |
| parent | 6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff) | |
Update upstream source from tag 'upstream/20221106+py3'
Update to upstream version '20221106+py3'
with Debian dir b54298e303932808cc08745c5f5133ad7b12628e
Diffstat (limited to 'tests/run_tests.py')
| -rw-r--r-- | tests/run_tests.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py index 195f4c4..671b3dc 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -451,7 +451,9 @@ class TestCaseBruteForce(TestCase): tmp = copy.deepcopy(m) if mode not in chirp_common.MODES: continue - if mode == "DV": + if mode == "DV" and \ + isinstance(self._wrapper._dst, + chirp_common.IcomDstarSupport): tmp = chirp_common.DVMemory() try: ensure_urcall(tmp.dv_urcall) @@ -895,8 +897,9 @@ class TestCaseDetect(TestCase): elif issubclass(radio.__class__, self._wrapper._dstclass): pass elif radio.__class__ != self._wrapper._dstclass: - raise TestFailedError("%s detected as %s" % - (self._wrapper._dstclass, radio.__class__)) + raise TestFailedError("%s detected as %s for %s" % + (self._wrapper._dstclass, radio.__class__, + filename)) return [] TESTS["Detect"] = TestCaseDetect @@ -1342,8 +1345,10 @@ Available tests: test_out = TestOutputHTML(options.html) else: stdout = sys.stdout - if not os.path.exists("logs"): + try: os.mkdir("logs") + except FileExistsError: + pass sys.stdout = open("logs/verbose", "w") test_out = TestOutputANSI(stdout) |
