Fix UPC token-only variant selection
This commit is contained in:
@@ -46,7 +46,10 @@ def get_setup_configs(mode, config=None):
|
||||
variants = product.get("session_variants")
|
||||
if variants is not None:
|
||||
resolved = get_product_config(name, config)
|
||||
if not resolved["setup"].get("run_session", True):
|
||||
# Expand variants when either session or token execution is
|
||||
# enabled. Token-only UPC runs must still reach their variants.
|
||||
setup = resolved.get("setup", {})
|
||||
if not setup.get("run_session", True) and not setup.get("run_token", True):
|
||||
continue
|
||||
variant_config = deepcopy(config)
|
||||
variant_config["products"] = {}
|
||||
|
||||
Reference in New Issue
Block a user