|
36 | 36 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
37 | 37 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
38 | 38 | # SOFTWARE. |
39 | | -import sys |
40 | | - |
41 | 39 | import abc |
42 | 40 | import argparse |
43 | 41 | import json |
44 | | -import mx |
45 | 42 | import os |
46 | 43 | import re |
47 | 44 | import shlex |
| 45 | +import sys |
48 | 46 | import types |
49 | 47 | from pathlib import Path |
50 | 48 |
|
| 49 | +import mx |
| 50 | + |
51 | 51 |
|
52 | 52 | def print_line(l): |
53 | 53 | print('=' * l) |
@@ -267,16 +267,13 @@ def _bisect_benchmark(argv, bisect_id, email_to): |
267 | 267 |
|
268 | 268 | def checkout(repo_path: Path, commit): |
269 | 269 | GIT.update_to_branch(repo_path, commit) |
270 | | - suite_dir = SUITE_MAPPING.get(repo_path, repo_path) |
271 | | - mx.run_mx(['sforceimports'], suite=str(suite_dir)) |
272 | | - mx.run_mx(['--env', 'ce', 'sforceimports'], suite=str(VM_DIR)) |
| 270 | + if repo_path == DIR: |
| 271 | + mx.run_mx(['sforceimports'], suite=str(DIR)) |
273 | 272 | if args.enterprise: |
274 | 273 | if repo_path.name != 'graal-enterprise': |
275 | 274 | mx.run_mx(['--quiet', 'checkout-downstream', 'vm', 'vm-enterprise', '--no-fetch'], |
276 | 275 | suite=str(VM_ENTERPRISE_DIR)) |
277 | | - mx.run_mx(['--env', 'ee', 'sforceimports'], suite=str(VM_ENTERPRISE_DIR)) |
278 | | - GIT.update_to_branch(repo_path, commit) |
279 | | - mx.run_mx(['sforceimports'], suite=str(suite_dir)) |
| 276 | + mx.run_mx(['--dy', 'substratevm-enterprise-gcs', 'sforceimports'], suite=str(VM_ENTERPRISE_DIR)) |
280 | 277 | debug_str = f"debug: {SUITE.name}={get_commit(SUITE.vc_dir)} graal={get_commit(GRAAL_DIR)}" |
281 | 278 | if args.enterprise: |
282 | 279 | debug_str += f" graal-enterprise={get_commit(GRAAL_ENTERPRISE_DIR)}" |
|
0 commit comments