diff options
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) |
