Mercurial > hg > truffle
comparison mx/commands.py @ 7509:442668d41bc2
fixed warnings
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 21 Jan 2013 12:23:55 +0100 |
parents | dd903cdfe708 |
children | 29b0768b7ba6 a8b0476270cf |
comparison
equal
deleted
inserted
replaced
7508:60c536556fc1 | 7509:442668d41bc2 |
---|---|
24 # or visit www.oracle.com if you need additional information or have any | 24 # or visit www.oracle.com if you need additional information or have any |
25 # questions. | 25 # questions. |
26 # | 26 # |
27 # ---------------------------------------------------------------------------------------------------- | 27 # ---------------------------------------------------------------------------------------------------- |
28 | 28 |
29 import os, sys, shutil, zipfile, tempfile, re, time, datetime, platform, subprocess, multiprocessing, types | 29 import os, sys, shutil, zipfile, tempfile, re, time, datetime, platform, subprocess, multiprocessing |
30 from os.path import join, exists, dirname, basename | 30 from os.path import join, exists, dirname, basename |
31 from argparse import ArgumentParser, REMAINDER | 31 from argparse import ArgumentParser, REMAINDER |
32 from threading import Thread | |
33 import mx | 32 import mx |
34 import sanitycheck | 33 import sanitycheck |
35 import json | 34 import json |
36 | 35 |
37 _graal_home = dirname(dirname(__file__)) | 36 _graal_home = dirname(dirname(__file__)) |
78 | 77 |
79 """ | 78 """ |
80 | 79 |
81 def _chmodDir(chmodFlags, dirname, fnames): | 80 def _chmodDir(chmodFlags, dirname, fnames): |
82 os.chmod(dirname, chmodFlags) | 81 os.chmod(dirname, chmodFlags) |
83 for file in fnames: | 82 for name in fnames: |
84 os.chmod(os.path.join(dirname, file), chmodFlags) | 83 os.chmod(os.path.join(dirname, name), chmodFlags) |
85 | 84 |
86 def chmodRecursive(dirname, chmodFlags): | 85 def chmodRecursive(dirname, chmodFlags): |
87 os.path.walk(dirname, _chmodDir, chmodFlags) | 86 os.path.walk(dirname, _chmodDir, chmodFlags) |
88 | 87 |
89 def clean(args): | 88 def clean(args): |
873 count = 1 | 872 count = 1 |
874 if len(args) > 0 and args[0].isdigit(): | 873 if len(args) > 0 and args[0].isdigit(): |
875 count = int(args[0]) | 874 count = int(args[0]) |
876 del args[0] | 875 del args[0] |
877 | 876 |
878 for n in range(count): | 877 for _ in range(count): |
879 if not vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops'] + args + ['-version'], vmbuild='fastdebug') == 0: | 878 if not vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops'] + args + ['-version'], vmbuild='fastdebug') == 0: |
880 mx.abort("Failed") | 879 mx.abort("Failed") |
881 | 880 |
882 def longtests(args): | 881 def longtests(args): |
883 | 882 |