(tests, first_test)
| 138 | |
| 139 | |
| 140 | def reorder_tests(tests, first_test): |
| 141 | try: |
| 142 | n = tests.index(first_test) |
| 143 | return [first_test] + tests[:n] + tests[n + 1:] |
| 144 | except ValueError: |
| 145 | return tests |
| 146 | |
| 147 | |
| 148 | critical_tests = ["unit_tests", "module_actions", "startup_v2", "core_d12", |