Skip to content

Commit bb7369e

Browse files
committed
mysql-cdc: fix glob root path in mzcompose.py
1 parent 6907869 commit bb7369e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/mysql-cdc/mzcompose.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import threading
1616
from textwrap import dedent
1717

18-
from materialize import buildkite
18+
from materialize import MZ_ROOT, buildkite
1919
from materialize.mysql_util import (
2020
retrieve_invalid_ssl_context_for_mysql,
2121
retrieve_ssl_context_for_mysql,
@@ -99,7 +99,9 @@ def workflow_cdc(c: Composition, parser: WorkflowArgumentParser) -> None:
9999

100100
matching_files = []
101101
for filter in args.filter:
102-
matching_files.extend(glob.glob(filter, root_dir="test/mysql-cdc"))
102+
matching_files.extend(
103+
glob.glob(filter, root_dir=MZ_ROOT / "test" / "mysql-cdc")
104+
)
103105
sharded_files: list[str] = sorted(
104106
buildkite.shard_list(matching_files, lambda file: file)
105107
)

0 commit comments

Comments
 (0)