From 9414976c4cfeee7766d21a8ddbc0fcd6f0ccd08b Mon Sep 17 00:00:00 2001 From: Alexey Masterov Date: Wed, 4 Sep 2024 17:36:48 +0200 Subject: [PATCH] uncomment the extension creation --- test_runner/cloud_regress/test_cloud_regress.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test_runner/cloud_regress/test_cloud_regress.py b/test_runner/cloud_regress/test_cloud_regress.py index 4e82957b58..b34a64780d 100644 --- a/test_runner/cloud_regress/test_cloud_regress.py +++ b/test_runner/cloud_regress/test_cloud_regress.py @@ -18,7 +18,6 @@ def test_cloud_regress(remote_pg: RemotePostgres): Run the regression tests """ pg_version = re.search(r"\-pg(\d+)\]", os.environ.get('PYTEST_CURRENT_TEST')).group(1) - log.info(pg_version) conn = psycopg2.connect(remote_pg.connstr()) cur = conn.cursor() cur.execute("SELECT COUNT(*) FROM pg_extension WHERE extname = 'regress_so'") @@ -28,13 +27,13 @@ def test_cloud_regress(remote_pg: RemotePostgres): log.info('The extension is found') else: log.info('Creating the extension') - #cur.execute('CREATE EXTENSION regress_so') - #conn.commit() + cur.execute('CREATE EXTENSION regress_so') + conn.commit() log.info('Creating a C function to check availability of regress.so') - #cur.execute("CREATE FUNCTION get_columns_length(oid[]) " - # "RETURNS int AS 'regress.so' LANGUAGE C STRICT STABLE PARALLEL SAFE;") - #conn.rollback() + cur.execute("CREATE FUNCTION get_columns_length(oid[]) " + "RETURNS int AS 'regress.so' LANGUAGE C STRICT STABLE PARALLEL SAFE;") + conn.rollback() neondir = os.path.abspath(os.path.join(os.path.dirname(os.path.relpath(__file__)), '../../')) runpath = f'{neondir}/vendor/postgres-v{pg_version}/src/test/regress' artpath = '/tmp/neon'