Skip to content

Commit fdff215

Browse files
committed
test: Explicitly specify directory where to search tests for
1 parent 4ff065d commit fdff215

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/test_runner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
528528

529529
# Test Framework Tests
530530
print("Running Unit Tests for Test Framework Modules")
531+
532+
tests_dir = os.path.join(src_dir, 'test', 'functional')
533+
sys.path.append(tests_dir)
534+
531535
test_framework_tests = unittest.TestSuite()
532536
for module in TEST_FRAMEWORK_MODULES:
533537
test_framework_tests.addTest(unittest.TestLoader().loadTestsFromName("test_framework.{}".format(module)))
@@ -536,8 +540,6 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
536540
logging.debug("Early exiting after failure in TestFramework unit tests")
537541
sys.exit(False)
538542

539-
tests_dir = os.path.join(src_dir, 'test', 'functional')
540-
541543
flags = ['--cachedir={}'.format(cache_dir)] + args
542544

543545
if enable_coverage:

0 commit comments

Comments
 (0)