Closed Bug 1220500 Opened 9 years ago Closed 9 years ago

local robocop test fails: |LOG: MainThread ERROR org.mozilla.$(MOZ_APP_NAME) is not installed on this device|

Categories

(Firefox for Android Graveyard :: Testing, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: capella, Assigned: nalexander)

Details

Attachments

(1 file)

I haven't run robocop locally recently, but currently on running: |./mach robocop tetSelectionCarets|, I'm getting error message:
   0:00.89 LOG: MainThread ERROR org.mozilla.$(MOZ_APP_NAME) is not installed on this device

Simply removing the check here gets me past the error ...
   http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runrobocop.py?rev=e65ea9918140&mark=526-531#515

fwiw: |options.app| in that block resolves to |org.mozilla.$(MOZ_APP_NAME)|
|./mach robocop testSelectionCarets| still works fine for me.

options.app should be ANDROID_PACKAGE_NAME, usually org.mozilla.fennec_gbrown for me. I wonder if this is the difference between something like

http://hg.mozilla.org/mozilla-central/annotate/96377bdbcdf3/mobile/android/branding/unofficial/configure.sh#l5

and

http://hg.mozilla.org/mozilla-central/annotate/96377bdbcdf3//configure.in#l329
I don't see this.  capella, is it possible you are running this in an unusual shell; or that you are running this against a desktop build?  I can't see where options.app comes from *and doesn't get shell expanded*.

Your mozconfig, objdir name, and $OBJDIR/config.status would help here.
Flags: needinfo?(markcapella)
Clearing ?ni ... I'm not a build / make / configure / autoconf (etc) person, but I'll dig a little further.

All I see for now is that my ANDROID_PACKAGE_NAME is set from MOZ_APP_NAME here:
   http://mxr.mozilla.org/mozilla-central/source/configure.in?rev=f7a19fa7fad2&mark=329#325

But my MOZ_APP_NAME isn't itself set from MOZ_APP_BASENAME |Fennec| until later, here:
   http://mxr.mozilla.org/mozilla-central/source/configure.in?rev=f7a19fa7fad2&mark=8734#8702
Flags: needinfo?(markcapella)
awesomeness! Thanks so much for remembering this :-D
Comment on attachment 8700894 [details]
MozReview Request: Bug 1220500 - Set ANDROID_PACKAGE_NAME correctly from MOZ_APP_NAME. r?glandium

https://reviewboard.mozilla.org/r/28835/#review25625
Attachment #8700894 - Flags: review?(mh+mozilla) → review+
capella: can you confirm this helps?
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Flags: needinfo?(markcapella)
I sure can! I special installed prior to my comment #6 and it's push to fx-team
Flags: needinfo?(markcapella)
https://hg.mozilla.org/mozilla-central/rev/91c2a2502721
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: