Closed Bug 980251 Opened 12 years ago Closed 12 years ago

Provide a simple way to run the test runner in B2G Desktop

Categories

(Firefox OS Graveyard :: Gaia::TestAgent, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: julienw)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
bkelly
: review+
Details | Review
No description provided.
Attached file github PR
Make bin/gaia-test takes an option to run in B2G Desktop instead of Firefox bin/gaia-test | 161 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 115 insertions(+), 46 deletions(-) I used "-d" instead of "-b" because I thought that "-b" could be used in a follow-up patch to specify the binary to use (instead of using the second argument). We could also use "-g" to specify the gaia dir, while still retaining the current way.
Attachment #8386671 - Flags: review?(bkelly)
Comment on attachment 8386671 [details] [review] github PR Rik, I know you use this script too, so I'd value your feedback on this.
Attachment #8386671 - Flags: feedback?(anthony)
Comment on attachment 8386671 [details] [review] github PR Looks good except for a typo in the getops logic. I assume you switched from -b to -d at the last minute. After fixing that I'm able to select b2g-desktop, have it download, and run. I don't have a convenient place to fully run the tests at the moment (headless linux VM), but it seems to run correctly. It might be nice to have some safety checks using --version on the binary to see if someone says "use b2g-desktop" but then specifies a firefox binary on the command line. I don't think thats worth holding back for, though.
Attachment #8386671 - Flags: review?(bkelly) → review+
(In reply to Ben Kelly [:bkelly] from comment #3) > Comment on attachment 8386671 [details] [review] > github PR > > Looks good except for a typo in the getops logic. I assume you switched > from -b to -d at the last minute. oops :) yep ! > > After fixing that I'm able to select b2g-desktop, have it download, and run. > I don't have a convenient place to fully run the tests at the moment > (headless linux VM), but it seems to run correctly. > > It might be nice to have some safety checks using --version on the binary to > see if someone says "use b2g-desktop" but then specifies a firefox binary on > the command line. I don't think thats worth holding back for, though. Yep, I didn't exactly know which one we wanted, so I said, well, most of users will download it, and users that specify a specific binary know what they do. Thanks !
Pushed the fixed version to the PR. I'll give a chance to Anthony to answer and otherwise I'll merge tonight.
master: 04eb7996543f114133d1367f834a4d88b68c60ac
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Anthony, if you have any concern, please file a bug :)
Comment on attachment 8386671 [details] [review] github PR Nope, it works well locally so good for me. It should probably be mentioned on https://developer.mozilla.org/en-US/Firefox_OS/Platform/Automated_testing/Gaia_unit_tests ?
Attachment #8386671 - Flags: feedback?(anthony) → feedback+
yep
Flags: needinfo?(felash)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: