Closed Bug 1617757 Opened 5 years ago Closed 4 years ago

`./mach run` for Android should support a flag to skip the install confirmation

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1566930

People

(Reporter: mstange, Unassigned)

Details

(Keywords: in-triage)

Attachments

(1 obsolete file)

./mach run for Android always asks if it should Re-install geckoview_example? (Y/n). After pressing enter it takes another minute until the installation is complete.

I'd like to have a way to say ahead of time "yes, please re-install". According to ./mach run --help there is a way to say "no" by using the --no-install flag, but I don't see a --yes-install flag.

With only a --no-install flag, there is no way to force reinstalling a
binary to the Android device during './mach run'.

Now we can use --install=no or --install=yes to supply an answer to the
question, while the default of prompting the user remains if no
--install flag is given.

Assignee: nobody → mshal
Status: NEW → ASSIGNED

Comment on attachment 9128955 [details]
Bug 1617757 - Use ./mach run --install={yes,no} instead of --no-install; r?gbrown

Does this patch work as intended for you?

Attachment #9128955 - Flags: feedback?(mstange)

It's not as concise, but couldn't you use 'mach install && mach run --no-install' in this case?

(In reply to Geoff Brown [:gbrown] from comment #3)

It's not as concise, but couldn't you use 'mach install && mach run --no-install' in this case?

I see! I guess it would work - I didn't know about mach install.

I don't have a strong opinion on the name of the command line arguments or the defaults. But I agree that it's very valuable to have arguments that are consistently supported across the mach run / mach test commands.

Attachment #9128955 - Attachment is obsolete: true
Attachment #9128955 - Flags: feedback?(mstange)

There is also bug 1566930 - should this be duped to that?

Assignee: mshal → nobody
Status: ASSIGNED → NEW

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Mach Core

Looks like 1566930 is closed, which also solved this bug. Closing.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: