Skip to content

Commit fa8d54d

Browse files
fix: propagate pytest exit code in connector test command (#549)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Aaron <AJ> Steers <[email protected]>
1 parent 6485afd commit fa8d54d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airbyte_cdk/cli/airbyte_cdk/_connector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"""
4040

4141
import os
42+
import sys
4243
from pathlib import Path
4344
from types import ModuleType
4445

@@ -166,10 +167,11 @@ def test(
166167
click.echo(f"Collect only: {collect_only}")
167168
click.echo(f"Pytest args: {pytest_args}")
168169
click.echo("Invoking Pytest...")
169-
pytest.main(
170+
exit_code = pytest.main(
170171
pytest_args,
171172
plugins=[],
172173
)
174+
sys.exit(exit_code)
173175

174176

175177
__all__ = [

0 commit comments

Comments
 (0)