| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2011 the V8 project authors. All rights reserved. | 3 # Copyright 2011 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 args_for_children += ['--no-build', '--build-system=gyp'] | 206 args_for_children += ['--no-build', '--build-system=gyp'] |
| 207 for arg in args: | 207 for arg in args: |
| 208 args_for_children += [arg] | 208 args_for_children += [arg] |
| 209 returncodes = 0 | 209 returncodes = 0 |
| 210 | 210 |
| 211 for mode in options.mode: | 211 for mode in options.mode: |
| 212 for arch in options.arch: | 212 for arch in options.arch: |
| 213 print ">>> running tests for %s.%s" % (arch, mode) | 213 print ">>> running tests for %s.%s" % (arch, mode) |
| 214 shell = workspace + '/' + options.outdir + '/' + arch + '.' + mode + "/d8" | 214 shell = workspace + '/' + options.outdir + '/' + arch + '.' + mode + "/d8" |
| 215 child = subprocess.Popen(' '.join(args_for_children + | 215 child = subprocess.Popen(' '.join(args_for_children + |
| 216 ['--arch=' + arch] + |
| 216 ['--mode=' + mode] + | 217 ['--mode=' + mode] + |
| 217 ['--shell=' + shell]), | 218 ['--shell=' + shell]), |
| 218 shell=True, | 219 shell=True, |
| 219 cwd=workspace) | 220 cwd=workspace) |
| 220 returncodes += child.wait() | 221 returncodes += child.wait() |
| 221 | 222 |
| 222 return returncodes | 223 return returncodes |
| 223 | 224 |
| 224 | 225 |
| 225 if __name__ == '__main__': | 226 if __name__ == '__main__': |
| 226 sys.exit(Main()) | 227 sys.exit(Main()) |
| OLD | NEW |