LLNL / ATS

ATS - Automated Testing System - is an open-source, Python-based tool for automating the running of tests of an application across a broad range of high performance computers.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Move priority calculation to separate method #145

Closed liu15 closed 1 year ago

liu15 commented 1 year ago

The priority calculation can be improved if the tests are already sorted by priority, however because of the global module initializations in prioritize(), it cannot be overridden without overridding all methods that reference machine or configuration.

Splitting the priority calculation into a separate method allows it to be overridden easily.