diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2013-11-20 14:28:49 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2013-11-20 14:28:49 +1300 |
| commit | a1e4e89846b3c236569c2fb275527584635bcd7f (patch) | |
| tree | d96187d0a4cbc1e3d08fc7cff70146686e456213 /python/subunit/_output.py | |
| parent | 4c9b32360c7f2c3cc82c438d0206dc484c85ad02 (diff) | |
| download | subunit-a1e4e89846b3c236569c2fb275527584635bcd7f.tar.gz | |
code cleanup, added a few more tests for the --file-name option.
Diffstat (limited to 'python/subunit/_output.py')
| -rw-r--r-- | python/subunit/_output.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/subunit/_output.py b/python/subunit/_output.py index 08ed3fc..12479e8 100644 --- a/python/subunit/_output.py +++ b/python/subunit/_output.py @@ -40,7 +40,7 @@ def parse_arguments(args=None, ParserClass=ArgumentParser): """ parser = ParserClass( prog='subunit-output', - description="A tool to generate a subunit result byte-stream", + description="A tool to generate a subunit v2 result byte-stream", ) status_commands = parser.add_argument_group( @@ -48,9 +48,10 @@ def parse_arguments(args=None, ParserClass=ArgumentParser): "These options report the status of a test. TEST_ID must be a string " "that uniquely identifies the test." ) - final_actions = 'success fail skip xfail uxsuccess'.split() - for action in "inprogress success fail skip exists xfail uxsuccess".split(): - final_text = "This is a final state: No more status reports may "\ + final_actions = 'exists fail skip success xfail uxsuccess'.split() + all_actions = final_actions + ['inprogress'] + for action in all_actions: + final_text = " This is a final state: No more status reports may "\ "be generated for this test id after this one." status_commands.add_argument( |
