Skip to content

Commit 82c10b3

Browse files
committed
get extensions from also moved to shared
1 parent 237291b commit 82c10b3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/shared_functions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ def list_all_runs(con, build_job):
7373
# result = duckdb.sql(f"SELECT name FROM read_json('{ build_job.get_run_list_file_name() }')").fetchall()
7474
# return result
7575

76+
def get_extensions_from(config) :
77+
with open(config, "r") as file:
78+
content = file.read()
79+
# matching each word after `load(`
80+
pattern = r"duckdb_extension_load\((\w+)"
81+
matches = re.findall(pattern, content)
82+
return matches
83+
7684
def list_extensions():
7785
extensions = []
7886
matches = glob.glob(EXT_PATH_PATTERN)

scripts/verify_and_test.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@
4545
run_id = args.run_id
4646
runs_on = args.runs_on # linux-latest
4747

48-
def get_extensions_from(config) :
49-
with open(config, "r") as file:
50-
content = file.read()
51-
# matching each word after `load(`
52-
pattern = r"duckdb_extension_load\((\w+)"
53-
matches = re.findall(pattern, content)
54-
return matches
55-
5648
def get_full_sha(run_id):
5749
gh_headSha_command = [
5850
"gh", "run", "view",

0 commit comments

Comments
 (0)