Skip to content

Commit

Permalink
Remove the default testplan argument value from run.
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Ernst <[email protected]>
  • Loading branch information
jernst and Johannes Ernst authored Oct 2, 2024
1 parent d317dcd commit f465700
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/feditest/cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
create_plan_from_testplan
)
from feditest.registry import Registry, set_registry_singleton
from feditest.reporting import warning
from feditest.reporting import fatal, warning
from feditest.testplan import TestPlan
from feditest.testrun import TestRun
from feditest.testruncontroller import AutomaticTestRunController, InteractiveTestRunController, TestRunController
Expand Down Expand Up @@ -52,8 +52,7 @@ def run(parser: ArgumentParser, args: Namespace, remaining: list[str]) -> int:
plan = create_plan_from_session_templates_and_constellations(args)

if not plan:
# neither sessions nor testplan specified
plan = TestPlan.load("feditest-default.json")
fatal('Cannot find or create test plan ')

if not plan.is_compatible_type():
warning(f'Test plan has unexpected type { plan.type }: incompatibilities may occur.')
Expand Down

0 comments on commit f465700

Please sign in to comment.