Ensure that if test cases run with the '--pkg resql' option then only RESQL test cases should be run.

pull/6473/head
Akshay Joshi 2023-06-20 17:24:37 +05:30
parent 4746fbd346
commit 4490f6f838
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ class TestsGeneratorRegistry(ABCMeta):
# if yes then import only that module
if is_resql_only:
BaseTestGenerator.setForModules(for_modules)
# In case of RESQL only clear the registry of modules, as
# RESQL test cases should be run.
cls.registry = dict()
try:
import_module('regression.re_sql.tests.test_resql')
except ImportError: