Ironically this was it. My git-send-email skills are still pretty low. Thanks ZK
On Wed, Jan 29, 2014 at 11:24 PM, Zygmunt Krynicki < [email protected]> wrote: > Signed-off-by: Zygmunt Krynicki <[email protected]> > --- > plainbox/plainbox/impl/commands/analyze.py | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/plainbox/plainbox/impl/commands/analyze.py > b/plainbox/plainbox/impl/commands/analyze.py > index 91564cf..7c802f7 100644 > --- a/plainbox/plainbox/impl/commands/analyze.py > +++ b/plainbox/plainbox/impl/commands/analyze.py > @@ -57,6 +57,8 @@ class AnalyzeInvocation(CheckBoxInvocationMixIn): > > def run(self): > if self.ns.run_local: > + if self.ns.print_desired_job_list: > + self._print_desired_job_list() > self._run_local_jobs() > if self.ns.print_stats: > self._print_general_stats() > @@ -70,6 +72,13 @@ class AnalyzeInvocation(CheckBoxInvocationMixIn): > self._print_validation_report(self.ns.only_errors) > if self.ns.print_requirement_report: > self._print_requirement_report() > + if self.ns.print_desired_job_list: > + self._print_desired_job_list() > + > + def _print_desired_job_list(self): > + print("[Desired Job List]".center(80, '=')) > + for job in self.session.desired_job_list: > + print("{}".format(job.name)) > > def _run_local_jobs(self): > print("[Running Local Jobs]".center(80, '=')) > @@ -246,6 +255,9 @@ class AnalyzeCommand(PlainBoxCommand, > CheckBoxCommandMixIn): > group.add_argument( > "-E", "--only-errors", action='store_true', default=False, > help="When coupled with -v, only problematic jobs will be > listed") > + group.add_argument( > + "-S", "--print-desired-job-list", action='store_true', > + help="Print desired job list") > parser.set_defaults(command=self) > # Call enhance_parser from CheckBoxCommandMixIn > self.enhance_parser(parser) > -- > 1.8.5.3 > >
-- Mailing list: https://launchpad.net/~checkbox-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~checkbox-dev More help : https://help.launchpad.net/ListHelp

