comparison mx.jvmci/mx_jvmci.py @ 22180:04ecedece09a

use the correct my.py when launching an mx subprocess
author Doug Simon <doug.simon@oracle.com>
date Tue, 21 Jul 2015 14:25:29 +0200
parents afc886bb27c7
children ffdee9fe0ded
comparison
equal deleted inserted replaced
22179:afc886bb27c7 22180:04ecedece09a
1116 log = open(join(_suite.dir, logFile), 'wb') 1116 log = open(join(_suite.dir, logFile), 'wb')
1117 start = time.time() 1117 start = time.time()
1118 mx.log('BEGIN: ' + v + '-' + vmbuild + '\t(see: ' + logFile + ')') 1118 mx.log('BEGIN: ' + v + '-' + vmbuild + '\t(see: ' + logFile + ')')
1119 verbose = ['-v'] if mx._opts.verbose else [] 1119 verbose = ['-v'] if mx._opts.verbose else []
1120 # Run as subprocess so that output can be directed to a file 1120 # Run as subprocess so that output can be directed to a file
1121 cmd = [sys.executable, '-u', join('mxtool', 'mx.py')] + verbose + ['--vm', v, '--vmbuild', vmbuild, 'build'] + check_dists_args 1121 cmd = [sys.executable, '-u', mx.__file__] + verbose + ['--vm', v, '--vmbuild', vmbuild, 'build'] + check_dists_args
1122 mx.logv("executing command: " + str(cmd)) 1122 mx.logv("executing command: " + str(cmd))
1123 subprocess.check_call(cmd, cwd=_suite.dir, stdout=log, stderr=subprocess.STDOUT) 1123 subprocess.check_call(cmd, cwd=_suite.dir, stdout=log, stderr=subprocess.STDOUT)
1124 duration = datetime.timedelta(seconds=time.time() - start) 1124 duration = datetime.timedelta(seconds=time.time() - start)
1125 mx.log('END: ' + v + '-' + vmbuild + '\t[' + str(duration) + ']') 1125 mx.log('END: ' + v + '-' + vmbuild + '\t[' + str(duration) + ']')
1126 else: 1126 else: