| OLD | NEW | 
|---|
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without | 
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are | 
| 4 # met: | 4 # met: | 
| 5 # | 5 # | 
| 6 #     * Redistributions of source code must retain the above copyright | 6 #     * Redistributions of source code must retain the above copyright | 
| 7 #       notice, this list of conditions and the following disclaimer. | 7 #       notice, this list of conditions and the following disclaimer. | 
| 8 #     * Redistributions in binary form must reproduce the above | 8 #     * Redistributions in binary form must reproduce the above | 
| 9 #       copyright notice, this list of conditions and the following | 9 #       copyright notice, this list of conditions and the following | 
| 10 #       disclaimer in the documentation and/or other materials provided | 10 #       disclaimer in the documentation and/or other materials provided | 
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 131           self.succeeded += 1 | 131           self.succeeded += 1 | 
| 132         self.remaining -= 1 | 132         self.remaining -= 1 | 
| 133         try: | 133         try: | 
| 134           self.perfdata.UpdatePerfData(test) | 134           self.perfdata.UpdatePerfData(test) | 
| 135         except Exception, e: | 135         except Exception, e: | 
| 136           print("UpdatePerfData exception: %s" % e) | 136           print("UpdatePerfData exception: %s" % e) | 
| 137           pass  # Just keep working. | 137           pass  # Just keep working. | 
| 138         self.indicator.HasRun(test, has_unexpected_output) | 138         self.indicator.HasRun(test, has_unexpected_output) | 
| 139     finally: | 139     finally: | 
| 140       pool.terminate() | 140       pool.terminate() | 
|  | 141       self.perf_data_manager.close() | 
| 141     if queued_exception: | 142     if queued_exception: | 
| 142       raise queued_exception | 143       raise queued_exception | 
| 143 | 144 | 
| 144 | 145 | 
| 145   def GetCommand(self, test): | 146   def GetCommand(self, test): | 
| 146     d8testflag = [] | 147     d8testflag = [] | 
| 147     shell = test.suite.shell() | 148     shell = test.suite.shell() | 
| 148     if shell == "d8": | 149     if shell == "d8": | 
| 149       d8testflag = ["--test"] | 150       d8testflag = ["--test"] | 
| 150     if utils.IsWindows(): | 151     if utils.IsWindows(): | 
| 151       shell += ".exe" | 152       shell += ".exe" | 
| 152     cmd = (self.context.command_prefix + | 153     cmd = (self.context.command_prefix + | 
| 153            [os.path.abspath(os.path.join(self.context.shell_dir, shell))] + | 154            [os.path.abspath(os.path.join(self.context.shell_dir, shell))] + | 
| 154            d8testflag + | 155            d8testflag + | 
| 155            ["--random-seed=%s" % self.context.random_seed] + | 156            ["--random-seed=%s" % self.context.random_seed] + | 
| 156            test.suite.GetFlagsForTestCase(test, self.context) + | 157            test.suite.GetFlagsForTestCase(test, self.context) + | 
| 157            self.context.extra_flags) | 158            self.context.extra_flags) | 
| 158     return cmd | 159     return cmd | 
| 159 | 160 | 
| 160 | 161 | 
| 161 class BreakNowException(Exception): | 162 class BreakNowException(Exception): | 
| 162   def __init__(self, value): | 163   def __init__(self, value): | 
| 163     self.value = value | 164     self.value = value | 
| 164   def __str__(self): | 165   def __str__(self): | 
| 165     return repr(self.value) | 166     return repr(self.value) | 
| OLD | NEW | 
|---|