@@ -321,7 +321,7 @@ def _build_jobs(namespace, pkgs):
321321 for flags in islice (_build_job (namespace , pkg , False ), namespace .use_combos ):
322322 yield pkg .versioned_atom , False , flags
323323
324- if namespace .test and "test" in pkg . defined_phases :
324+ if namespace .test :
325325 yield pkg .versioned_atom , True , next (iter (_build_job (namespace , pkg , True )))
326326
327327
@@ -384,13 +384,12 @@ def main(options, out, err):
384384 else :
385385 template = read_text ("pkgdev.tatt" , "template.sh.jinja" )
386386
387- from jinja2 import Template
387+ if options .use_combos <= 0 and not options .test :
388+ return err .error (
389+ "no --test and --use-combos isn't a positive integer. Cannot create any jobs, exiting..."
390+ )
388391
389- if not any ("test" in pkg .defined_phases for pkg in pkgs ):
390- if not options .use_combos > 0 :
391- return err .error (
392- "no packages define a src_test, and --use-combos is not a positive integer. Cannot create any jobs, exiting..."
393- )
392+ from jinja2 import Template
394393
395394 script = Template (template , trim_blocks = True , lstrip_blocks = True ).render (
396395 jobs = list (_build_jobs (options , pkgs )),
0 commit comments