summaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:39 +0100
committerChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:39 +0100
commit6f19923a918f7fb63a444b0c99950fdbe9d2f74c (patch)
tree326c13aee4c097b57d784572fa0d322146c832a2 /tests/run_tests.py
parent14581c70e561f9f350a4d5ad86924a5d466028d4 (diff)
New upstream version 20221106+py3upstream/20221106+py3
Diffstat (limited to 'tests/run_tests.py')
-rw-r--r--tests/run_tests.py13
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)