Closed
Bug 738310
Opened 14 years ago
Closed 14 years ago
Talos does not run when there are spaces in browser path
Categories
(Testing :: Talos, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: fahim.zahur, Unassigned)
Details
(Whiteboard: [mentor=BYK])
Attachments
(1 file, 1 obsolete file)
|
654 bytes,
patch
|
BYK
:
review+
|
Details | Diff | Splinter Review |
Talos does not open when there are spaces in Windows path for Firefox.
| Reporter | ||
Updated•14 years ago
|
Whiteboard: mentor=BYK
Updated•14 years ago
|
Whiteboard: mentor=BYK → [mentor=BYK]
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: x86_64 → All
Summary: Talos does not open when there are spaces in Windows path for Firefox → Talos does not run when there are spaces in browser path
| Reporter | ||
Comment 1•14 years ago
|
||
I've added quotes around the formatting string in the GenerateBrowserCommandLine function in ffprocess_win32.py. Working with Windows browser paths containing spaces in my machine now.
Comment 2•14 years ago
|
||
Comment on attachment 608581 [details] [diff] [review]
Added quotes around formatting string in ffprocess_win32
Review of attachment 608581 [details] [diff] [review]:
-----------------------------------------------------------------
Why using triple quotes? This wraps the whole command line in single quotes which tend to have problems.
Attachment #608581 -
Flags: review-
| Reporter | ||
Comment 3•14 years ago
|
||
(In reply to Burak Yiğit Kaya [:BYK] from comment #2)
> Comment on attachment 608581 [details] [diff] [review]
> Added quotes around formatting string in ffprocess_win32
>
> Review of attachment 608581 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Why using triple quotes? This wraps the whole command line in single quotes
> which tend to have problems.
Assuming that the double quotes are necessary around the browser_path for it to work with spaces, I am thinking there are 2 ways to fix this. One is to change the GenerateBrowserCommandLine function in ffprocess_win32.py, and the other is to change the bcontroller.py file so that after it reads in bcontroller.yml it adds double quotes to the browser_path inside command.
Regarding the first approach I couldn't make it work any way other than with triple quotes. Anything else along with double quotes around browser_path seems to cause errors when reading in the bcontroller.yml file.
Do you think I should go for the second approach?
Hardware: All → x86_64
Comment 4•14 years ago
|
||
(In reply to Fahim Zahur from comment #3)
> Assuming that the double quotes are necessary around the browser_path for it
> to work with spaces, I am thinking there are 2 ways to fix this. One is to
> change the GenerateBrowserCommandLine function in ffprocess_win32.py, and
> the other is to change the bcontroller.py file so that after it reads in
> bcontroller.yml it adds double quotes to the browser_path inside command.
That's because writeConfigFile function in utils.py does not do proper quote escaping while writing the values to the yml file. Triple quotes include the single quotes which prevents the problem though instead of using triple quotes I would prefer escaped quotes like '\'"%s" %s ... \'' and of course a comment explaining all this in short for people not to get confused in the future.
> Do you think I should go for the second approach?
Nope, I looked at it before even the bug was opened and it is way more complicated that it looks.
| Reporter | ||
Comment 5•14 years ago
|
||
Added escape quotes around formatting string and double quotes around browser_path.
Attachment #608581 -
Attachment is obsolete: true
Attachment #608859 -
Flags: review?(madbyk)
Comment 6•14 years ago
|
||
Comment on attachment 608859 [details] [diff] [review]
Added escape quotes around formatting string and double quotes around browser_path
Review of attachment 608859 [details] [diff] [review]:
-----------------------------------------------------------------
Looks pretty good. The lines below the changed line needs a little styling though you got yourself your first r+ =)
Attachment #608859 -
Flags: review?(madbyk) → review+
Comment 7•14 years ago
|
||
pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=a1db31a6806f
Comment 8•14 years ago
|
||
Try run for a1db31a6806f is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=a1db31a6806f
Results (out of 74 total builds):
success: 72
failure: 2
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-a1db31a6806f
Comment 9•14 years ago
|
||
Looks green. Needs to be tested on android (try does not yet test Talos changes on android)
Whiteboard: [mentor=BYK] → [mentor=BYK][talos-checkin-needed]
Comment 10•14 years ago
|
||
Try run for 024c9636b51a is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=024c9636b51a
Results (out of 76 total builds):
success: 75
failure: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-024c9636b51a
Comment 11•14 years ago
|
||
Looks green, pushing
Comment 12•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 13•14 years ago
|
||
Thanks for the patch!
Updated•13 years ago
|
Whiteboard: [mentor=BYK][talos-checkin-needed] → [mentor=BYK]
You need to log in
before you can comment on or make changes to this bug.
Description
•