Skip to content

Commit

Permalink
remove usage of included_suites when using newer RF versions
Browse files Browse the repository at this point in the history
included_suites has been deprecated as of RF 6.1
  • Loading branch information
reubenmiller committed Jan 10, 2024
1 parent a10d0ac commit 2f7fa89
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/pabot/pabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,16 @@ def generate_suite_names_with_builder(outs_dir, datasources, options):
if "pythonpath" in opts:
del opts["pythonpath"]
settings = RobotSettings(opts)
builder = TestSuiteBuilder(
settings["SuiteNames"], settings.extension, rpa=settings.rpa
)

# Note: first argument (included_suites) is deprecated from RobotFramework 6.1
if ROBOT_VERSION < "6.1":
builder = TestSuiteBuilder(
settings["SuiteNames"], settings.extension, rpa=settings.rpa
)
else:
builder = TestSuiteBuilder(
included_extensions=settings.extension, rpa=settings.rpa
)
suite = builder.build(*datasources)
settings.rpa = builder.rpa
suite.configure(**settings.suite_config)
Expand Down

0 comments on commit 2f7fa89

Please sign in to comment.