Closed Bug 1277334 Opened 8 years ago Closed 8 years ago

Autophone - should support --unittests in addition to -u when specifying tests via try

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

We currently only support the following syntax when processing try build comments for unit tests:

-u autophone-s1s2

we should also support the long form of the option --unittests
Comment on attachment 8759199 [details] [diff] [review]
bug-1277334-v1.patch

Review of attachment 8759199 [details] [diff] [review]:
-----------------------------------------------------------------

overall this patch looks good- just one question that could expand this slightly.

::: autophone.py
@@ +922,4 @@
>                  # Do not allow global selection of tests
>                  # since Autophone can not handle the load.
>                  tests = []
> +                reTests = re.compile('try:.* (?:-u|--unittests) (.*) -t.*')

any chance we should support --unittest as well?
Attachment #8759199 - Flags: review?(jmaher) → review+
I don't think so. mach help try shows

  -u TESTS, --unittests TESTS
                        Test suites to run in their entirety.
ok, all good!
deployed 2016-06-03 14:05
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: