From 2f7fa897de528d3c3c6e90e8742c7993c3c3cf1f Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 10 Jan 2024 14:25:05 +0100 Subject: [PATCH] remove usage of included_suites when using newer RF versions included_suites has been deprecated as of RF 6.1 --- src/pabot/pabot.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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)