Closed Bug 1089002 Opened 10 years ago Closed 10 years ago

./mach reftest error: runreftest.py: error: could not find the application path, --appname must be specified

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: MatsPalmgren_bugz, Assigned: nalexander)

References

Details

(Keywords: regression)

Attachments

(1 file)

# ./mach reftest  layout/reftests/bugs/reftest.list 
 0:00.08 /usr/bin/make -C . -j15 -s -w reftest
 0:00.17 make: Entering directory `/md1/objdir/md1/src/inbound'
 0:00.27 Usage: runreftest.py [options]
 0:00.27 
 0:00.27 runreftest.py: error: could not find the application path, --appname must be specified
 0:00.28 make: Leaving directory `/md1/objdir/md1/src/inbound'
After reverting bug 1083279 it works fine again.
Blocks: 1083279
mats: what application ('mobile/android', 'browser', etc) are you building?  It's possible I made a mistake in my conditional in Bug 1083279.
Flags: needinfo?(mats)
Firefox, mozilla-inbound debug build on Linux64.
Flags: needinfo?(mats)
(In reply to Mats Palmgren (:mats) from comment #3)
> Firefox, mozilla-inbound debug build on Linux64.

Thanks.  This sure looks like a weirdness with defaults, default=, and store.  I'll r? you on a fix.
Attached patch fix?Splinter Review
I think it's just a typo, this fixes the problem for me.
(You use options.app in main.)
Comment on attachment 8511410 [details] [diff] [review]
fix?

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

It's fine by me if it works for you.  If you look back at the original code, the default setting was in the declaration with a default=.  I might go back to that, because the appname vs. app feels wrong to me.  Your call.
Attachment #8511410 - Flags: review+
No problem, it's better you fix it the right way.  It would be good to have a fix
soon though.  Thanks.
(In reply to Nick Alexander :nalexander from comment #6)
> I might go back to that, because the appname vs. app feels wrong to me.

FWIW, it's because OptionParser.set_defaults uses the destination name (dest="app") instead of the option name.
Can we get a fix in soon please?
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
https://hg.mozilla.org/mozilla-central/rev/b0956a9f57a9
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: