Open Bug 1828874 Opened 2 years ago Updated 2 years ago

Sort strings numerically in test-manifest-alpha

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: allstars.chh, Unassigned)

References

Details

For the test cases in mochitest.ini

[test_bug99998.html]   # a 5-digit bug number
[test_bug123456.html]  # a 6-digit bug number

Currently, test-manifest-alpha will sort it alphabetically
./mach lint path_to_mochitest.ini

# lint result
[test_bug123456.html]
[test_bug99998.html]

Given we have many legacy test cases with a bug number, it should sort the strings with bug numbers numerically.

There's a natsort but I am not sure if we can deploy this into our build.

See Also: → 1826799
You need to log in before you can comment on or make changes to this bug.