From c977f121f2f2956273b1c0f9f1185f5c01fcc564 Mon Sep 17 00:00:00 2001 From: Mikko Korpela Date: Sun, 28 Jan 2024 19:40:41 +0200 Subject: [PATCH] remove include if test or suite is in --- src/pabot/pabot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pabot/pabot.py b/src/pabot/pabot.py index f0ef5c65..a222d7db 100644 --- a/src/pabot/pabot.py +++ b/src/pabot/pabot.py @@ -609,6 +609,8 @@ def _options_for_executor( options["xunit"] = "NONE" options["test"] = options.get("test", [])[:] options["suite"] = options.get("suite", [])[:] + if (options["test"] or options["suite"]) and "include" in options: + del options["include"] execution_item.modify_options_for_executor(options) options["outputdir"] = "%OUTPUTDIR%" if execution_item.type == "hived" else outs_dir options["variable"] = options.get("variable", [])[:]