Added support for a Custom Unity Library // Resolve #3980

This commit is contained in:
Ivan Kravets committed 2022-05-03 21:47:20 +03:00
1 parent b12d9f62b9
commit e81d83b8c2
4 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -42,14 +42,14 @@ class TestRunnerFactory(object):
runner_cls = None
if test_framework == "custom":
test_dir = project_config.get("platformio", "test_dir")
custom_runner_path = os.path.join(test_dir, "custom_test_runner.py")
custom_runner_path = os.path.join(test_dir, "test_custom_runner.py")
test_name = test_suite.test_name if test_suite.test_name != "*" else None
while test_name:
if os.path.isfile(
os.path.join(test_dir, test_name, "custom_test_runner.py")
os.path.join(test_dir, test_name, "test_custom_runner.py")
):
custom_runner_path = os.path.join(
test_dir, test_name, "custom_test_runner.py"
test_dir, test_name, "test_custom_runner.py"
)
break
test_name = os.path.dirname(test_name) # parent dir