Closed Bug 846273 Opened 11 years ago Closed 11 years ago

robocop_autophone.ini is not included in the test package

Categories

(Testing :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla22

People

(Reporter: bc, Assigned: bc)

References

()

Details

Attachments

(1 file)

In bug 845767 I failed to specify that the new robocop_autophone.ini file should be packaged in the tests in the same fashion as robocop.ini.

Looking at http://mxr.mozilla.org/mozilla-central/source/build/mobile/robocop/Makefile.in it appears that I could just add additional lines for robocop_autophone.ini wherever robocop.ini is found, but I'm not sure if that is the right approach.

ted, jmaher: your opinion on the best approach would be appreciated.
Flags: needinfo?(ted)
Bob, there are 3 instances of robocop.ini in that Makefile.  I would recommend adding the robocop_autophone.ini to the makefile in all places that you see robocop.ini.  You could test this locally or on try server.
Flags: needinfo?(ted)
Attached patch patchSplinter Review
Also needed to tweak /testing/mochitest/Makefile.in

try: https://tbpl.mozilla.org/?tree=Try&rev=e0bc39fb51ca for android only.

I downloaded the tests zip and confirmed that mochitests/robocop_autophone.in is present.

Ted, when I check this in, should I put  DONTBUILD in the checkin comment since most platforms and tests won't care about this change?
Attachment #719466 - Flags: review?(ted)
Comment on attachment 719466 [details] [diff] [review]
patch

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

I would hesitate to land with DONTBUILD only because this could technically break Android test packaging if something is not correct.

::: build/mobile/robocop/Makefile.in
@@ +106,1 @@
>  	cp $(srcdir)/parse_ids.py parse_ids.py

It might be nice to make all of these rules just operate on $(_ROBOCOP_TOOLS) instead of listing the filenames out again, but it's probably not worth worrying about right now.

::: testing/mochitest/Makefile.in
@@ +77,5 @@
>  		$(NULL)	
>  
>  ifeq ($(MOZ_BUILD_APP),mobile/android)
> +_SERV_FILES += $(topsrcdir)/mobile/android/base/tests/robocop.ini \
> +		$(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini

nit: formatting:
_SERV_FILES += \
  $(topsrcdir)/mobile/android/base/tests/robocop.ini \
  $(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini \
  $(NULL)
Attachment #719466 - Flags: review?(ted) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/4e7646d14797

My makefile foo is low so I left the suggestion about _ROBOCOP_TOOLS on the table.
https://hg.mozilla.org/mozilla-central/rev/4e7646d14797
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: