1) Ensure that when '--pkg resql' is provided then only RESQL test cases should run.

2) Fixed the RESQL test cases for Sequences. #5810
This commit is contained in:
Akshay Joshi 2023-02-28 16:24:29 +05:30
parent a008f9ba79
commit 55b917f24b
5 changed files with 5 additions and 9 deletions

View File

@ -7,7 +7,8 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
START 5
MINVALUE 5
MAXVALUE 900
CACHE 1;
CACHE 1
OWNED BY tableforownedby.col2;
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
OWNER TO postgres;

View File

@ -1,4 +1,2 @@
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
OWNED BY NONE;
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
MAXVALUE 900;

View File

@ -7,7 +7,8 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
START 5
MINVALUE 5
MAXVALUE 900
CACHE 1;
CACHE 1
OWNED BY tableforownedby.col2;
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
OWNER TO enterprisedb;

View File

@ -1,4 +1,2 @@
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
OWNED BY NONE;
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
MAXVALUE 900;

View File

@ -68,13 +68,11 @@ class TestsGeneratorRegistry(ABCMeta):
all_modules = []
try:
for module_name in find_modules(pkg_root, True, True):
for module_name in find_modules(pkg_root, False, True):
if module_name.find(PSYCOPG2) != -1:
print("Skipping ", module_name)
continue
all_modules.append(module_name)
TestsGeneratorRegistry._exclude_packages(all_modules,
exclude_pkgs)
except Exception:
pass