Closed Bug 1125512 Opened 11 years ago Closed 11 years ago

Wrong error message is shown when running jstests.py with wrong js shell path.

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: arai, Assigned: arai)

Details

Attachments

(4 files, 1 obsolete file)

When running jstests.py with wrong js shell path, following message is shown: > Can't find config/autoconf.mk on a directory containing the JS shell (searched from %s) it's incompatibility problem between print statement and print function. https://dxr.mozilla.org/mozilla-central/source/js/src/tests/lib/manifest.py#61
"%s" in the messsage should be replaced with jsdir variable.
I guess this file is not used on try server now. Tested locally. $ ./jstests.py /usr/bin/js Can't find config/autoconf.mk on a directory containing the JS shell (searched from /usr/bin/js)
Attachment #8554260 - Flags: review?(terrence)
Comment on attachment 8554260 [details] [diff] [review] Fix error message when running jstests.py with wrong js shell path. Review of attachment 8554260 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/tests/lib/manifest.py @@ +57,5 @@ > break > > if path == None: > + print (("Can't find config/autoconf.mk on a directory containing the JS shell" > + " (searched from %s)") % jsdir) Python 2.7 is required, so could we switch this to use .format() instead?
As a first step, switched to `.format()` in manifest.py, and applied some styles. After this patch gets ready, I'll prepare patches for other files.
Attachment #8554260 - Attachment is obsolete: true
Attachment #8554260 - Flags: review?(terrence)
Attachment #8554721 - Flags: review?(terrence)
Comment on attachment 8554721 [details] [diff] [review] Part 1: Use .format() instead of module operator in manifest.py. Review of attachment 8554721 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #8554721 - Flags: review?(terrence) → review+
Thank you for reviewing :) Okay, prepared 3 more patches.
Attachment #8555178 - Flags: review?(terrence)
Attachment #8555178 - Flags: review?(terrence) → review+
Attachment #8555179 - Flags: review?(terrence) → review+
Attachment #8555180 - Flags: review?(terrence) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: