Mercurial > hg > truffle
changeset 9096:d4b868ed9cfb
buildvms command now runs "java -version" for each VM built unless -n option is specified
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 12 Apr 2013 22:07:33 +0200 |
parents | d538dce8f403 |
children | a0ab945fb95f |
files | mx/commands.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/commands.py Fri Apr 12 21:58:12 2013 +0200 +++ b/mx/commands.py Fri Apr 12 22:07:33 2013 +0200 @@ -845,6 +845,7 @@ parser = ArgumentParser(prog='mx buildvms'); parser.add_argument('--vms', help='a comma separated list of VMs to build (default: ' + vmsDefault + ')', metavar='<args>', default=vmsDefault) parser.add_argument('--builds', help='a comma separated list of build types (default: ' + vmbuildsDefault + ')', metavar='<args>', default=vmbuildsDefault) + parser.add_argument('-n', '--no-check', action='store_true', help='omit running "java -version" after each build') args = parser.parse_args(args) vms = args.vms.split(',') @@ -862,6 +863,11 @@ # Run as subprocess so that output can be directed to a file subprocess.check_call([sys.executable, '-u', join('mxtool', 'mx.py'), '--vm', v, 'build', vmbuild], cwd=_graal_home, stdout=log, stderr=subprocess.STDOUT) duration = datetime.timedelta(seconds=time.time() - start) + if not args.no_check: + vmargs = ['-version'] + if v == 'graal': + vmargs.insert(0, '-XX:-BootstrapGraal') + vm(vmargs, vm=v, vmbuild=vmbuild) mx.log('END: ' + v + '-' + vmbuild + '\t[' + str(duration) + ']') allDuration = datetime.timedelta(seconds=time.time() - allStart) mx.log('TOTAL TIME: ' + '[' + str(allDuration) + ']')