Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions launchable/commands/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,12 @@ def subset(
app = context.obj
tracking_client = TrackingClient(Tracking.Command.SUBSET, app=app)

if is_observation and is_get_tests_from_previous_sessions:
msg = "Cannot use --observation and --get-tests-from-previous-sessions options at the same time"
if is_observation and is_get_tests_from_previous_sessions and not is_output_exclusion_rules:
msg = """
ERROR: Invalid command combination detected.
The use of --observation and --get-tests-from-previous-sessions without specifying --output-exclusion-rules is not allowed.
You may only use --observation by itself, or combine --get-tests-from-previous-sessions with --output-exclusion-rules.
"""
click.echo(
click.style(
msg,
Expand Down
Loading