We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95f430e commit c3ba83fCopy full SHA for c3ba83f
src/cli/pytest_commands/consume.py
@@ -31,6 +31,13 @@ def handle_hive_env_flags(args: List[str]) -> List[str]:
31
32
def handle_consume_command_flags(consume_args: List[str], is_hive: bool) -> List[str]:
33
"""Handle all consume CLI flag pre-processing."""
34
+ # Ensure the consume command was called in the root folder of execution-spec-tests repo
35
+ cwd = Path(os.getcwd())
36
+ cwd_as_list = list(cwd.parts)
37
+ if cwd_as_list[-1].lower() != "execution-spec-tests":
38
+ pytest.exit(
39
+ "Please run the consume command in the root folder of the execution-spec-tests repo!"
40
+ )
41
args = list(handle_help_flags(consume_args, pytest_type="consume"))
42
args += ["-c", "pytest-consume.ini"]
43
if is_hive:
0 commit comments