Merge lp:~kissiel/checkbox/fix-1470811-show-desc-steps-ver-at-once into lp:checkbox

Proposed by Maciej Kisielewski
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3865
Merged at revision: 3875
Proposed branch: lp:~kissiel/checkbox/fix-1470811-show-desc-steps-ver-at-once
Merge into: lp:checkbox
Diff against target: 18 lines (+5/-2)
1 file modified
plainbox/plainbox/impl/commands/inv_run.py (+5/-2)
To merge this branch: bzr merge lp:~kissiel/checkbox/fix-1470811-show-desc-steps-ver-at-once
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+263759@code.launchpad.net

Description of the change

This MR changes how plainbox handles interactive jobs in the command-line.
1) Steps field is always printed before the test starts its activity. This way the user knows how to prepare for the activity before it starts.
2) For manual tests, there is no introductory prompt. Everything is printed at the beginning of the test and the only interaction with the user is regarding the outcome.

c9925bc plainbox:commands:inv_run: move first prompt in interactive jobs to after steps
7bd6ddd plainbox:commands:inv_run: remove intro prompt for manual jobs

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plainbox/plainbox/impl/commands/inv_run.py'
2--- plainbox/plainbox/impl/commands/inv_run.py 2015-07-01 09:41:39 +0000
3+++ plainbox/plainbox/impl/commands/inv_run.py 2015-07-03 10:40:11 +0000
4@@ -798,9 +798,12 @@
5 job.plugin in ('user-interact',
6 'user-interact-verify',
7 'manual')):
8- cmd = ui.wait_for_interaction_prompt(job)
9+ ui.notify_about_steps(job)
10+ if job.plugin == 'manual':
11+ cmd = 'run'
12+ else :
13+ cmd = ui.wait_for_interaction_prompt(job)
14 if cmd == 'run' or cmd is None:
15- ui.notify_about_steps(job)
16 result_builder = self.runner.run_job(
17 job, job_state, self.config, ui
18 ).get_builder()

Subscribers

People subscribed via source and target branches