Closed Bug 1625522 Opened 5 years ago Closed 5 years ago

./mach jit-test --run-binast fails with `TypeError: startswith first arg must be bytes or a tuple of bytes, not str`

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox-esr68 --- unaffected
firefox74 --- unaffected
firefox75 --- wontfix
firefox76 --- fixed

People

(Reporter: mgaudet, Assigned: sfink)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Trying to run BinAST tests with a mach build gets me

~/unified$ ./mach jit-test --run-binast
Traceback (most recent call last):
  File "/home/matthew/unified/js/src/jit-test/jit_test.py", line 403, in <module>
    main(sys.argv[1:])
  File "/home/matthew/unified/js/src/jit-test/jit_test.py", line 233, in main
    if not is_binast_enabled.startswith('true'):

./js/src/jit-test/jit_test.py --run-binast ./obj-opt-x86_64-pc-linux-gnu/dist/bin/js does work however

(In reply to Matthew Gaudet (he/him) [:mgaudet] from comment #1)

./js/src/jit-test/jit_test.py --run-binast ./obj-opt-x86_64-pc-linux-gnu/dist/bin/js does work however

Yeah, that's because it uses your system python, which must be Python 2 for you. On my Fedora 31, it's now Python 3. And I foolishly made ./mach jit-test force Python 3 because it made me feel good before it made me feel bad (from the regressions).

Bugbug thinks this bug is a defect, but please change it back in case of error.

Type: task → defect
Priority: -- → P2
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e5d9f93f320 py3 compatibility with jit-test --run-binast r=arai
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76

Doesn't seem like this is a common enough scenario to worry about uplifting to 75, but LMK if you feel strongly otherwise.

Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: