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 7c802f7..4b7cb39 100644
--- a/plainbox/plainbox/impl/commands/analyze.py
+++ b/plainbox/plainbox/impl/commands/analyze.py
@@ -59,6 +59,8 @@ class AnalyzeInvocation(CheckBoxInvocationMixIn):
if self.ns.run_local:
if self.ns.print_desired_job_list:
self._print_desired_job_list()
+ if self.ns.print_run_list:
+ self._print_run_list()
self._run_local_jobs()
if self.ns.print_stats:
self._print_general_stats()
@@ -74,12 +76,19 @@ class AnalyzeInvocation(CheckBoxInvocationMixIn):
self._print_requirement_report()
if self.ns.print_desired_job_list:
self._print_desired_job_list()
+ if self.ns.print_run_list:
+ self._print_run_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 _print_run_list(self):
+ print("[Run List]".center(80, '='))
+ for job in self.session.run_list:
+ print("{}".format(job.name))
+
def _run_local_jobs(self):
print("[Running Local Jobs]".center(80, '='))
manager = SessionManager.create_with_state(self.session)
@@ -258,6 +267,9 @@ class AnalyzeCommand(PlainBoxCommand, CheckBoxCommandMixIn):
group.add_argument(
"-S", "--print-desired-job-list", action='store_true',
help="Print desired job list")
+ group.add_argument(
+ "-R", "--print-run-list", action='store_true',
+ help="Print run 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