Skip to content

Commit

Permalink
Bug 1670504 - Sort shell-options before adding them to reftest option…
Browse files Browse the repository at this point in the history
…s to guarantee deterministic output. r=anba

Differential Revision: https://phabricator.services.mozilla.com/D93305
  • Loading branch information
jswalden committed Oct 14, 2020
1 parent 14ffff4 commit 0942a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/tests/test262-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def convertTestFile(test262parser, testSource, testName, includeSet, strictTests
shellOptions = {SHELL_OPTIONS[f] for f in testRec["features"] if f in SHELL_OPTIONS}
if shellOptions:
refTestSkipIf.append(("!xulRuntime.shell", "requires shell-options"))
refTestOptions.extend("shell-option({})".format(opt) for opt in shellOptions)
refTestOptions.extend(("shell-option({})".format(opt)
for opt in shellOptions))

# Includes for every test file in a directory is collected in a single
# shell.js file per directory level. This is done to avoid adding all
Expand Down

0 comments on commit 0942a28

Please sign in to comment.