Closed Bug 1449296 Opened 6 years ago Closed 6 years ago

Make gdb/run-tests.py runnable with either Python 2 or 3

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

We are sort of kind of converting most Python 2 scripts to either Python 3 or both.
It's simple enough to make this work in both.
Attachment #8962845 - Flags: review?(jwalden+bmo)
Comment on attachment 8962845 [details] [diff] [review]
Make gdb/run-tests.py runnable with either Python 2 or 3

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

Stealing.

::: js/src/gdb/run-tests.py
@@ +186,5 @@
>      def onTimeout(self):
>          self.summary.timeout(self)
>  
>      def show_cmd(self, out):
> +        print("Command: ", make_shell_cmd(self.cmd()))

The output from this will be weird in Python2. The % operator would be better here.
Attachment #8962845 - Flags: review?(jwalden+bmo) → review+
Priority: -- → P3
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/80f331e70605
Make gdb/run-tests.py runnable with either Python 2 or 3, r=jorendorff
https://hg.mozilla.org/mozilla-central/rev/80f331e70605
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: