diff --git a/src/pabot/pabot.py b/src/pabot/pabot.py index a554fa1c..f0ef5c65 100644 --- a/src/pabot/pabot.py +++ b/src/pabot/pabot.py @@ -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)