diff --git a/src/pabot/pabot.py b/src/pabot/pabot.py index fb95ade5..72342f06 100644 --- a/src/pabot/pabot.py +++ b/src/pabot/pabot.py @@ -1152,13 +1152,17 @@ def generate_suite_names_with_builder(outs_dir, datasources, options): settings = RobotSettings(opts) # Note: first argument (included_suites) is deprecated from RobotFramework 6.1 - if ROBOT_VERSION < "6.1": + if ROBOT_VERSION < "6.0": builder = TestSuiteBuilder( settings["SuiteNames"], settings.extension, rpa=settings.rpa ) + elif ROBOT_VERSION < "6.1": + builder = TestSuiteBuilder( + settings["SuiteNames"], settings.extension, rpa=settings.rpa, lang=opts["language"] + ) else: builder = TestSuiteBuilder( - included_extensions=settings.extension, rpa=settings.rpa + included_extensions=settings.extension, rpa=settings.rpa, lang=opts["language"] ) suite = builder.build(*datasources) settings.rpa = builder.rpa