Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: tools/test.py

Issue 27086: Issue 63: Running tests fails of there is a dot in the checkout path (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2008 the V8 project authors. All rights reserved. 3 # Copyright 2008 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 self.is_loaded = False 537 self.is_loaded = False
538 self.config = None 538 self.config = None
539 539
540 def GetConfiguration(self, context): 540 def GetConfiguration(self, context):
541 if self.is_loaded: 541 if self.is_loaded:
542 return self.config 542 return self.config
543 self.is_loaded = True 543 self.is_loaded = True
544 file = None 544 file = None
545 try: 545 try:
546 (file, pathname, description) = imp.find_module('testcfg', [ self.path ]) 546 (file, pathname, description) = imp.find_module('testcfg', [ self.path ])
547 module = imp.load_module(self.path, file, pathname, description) 547 module = imp.load_module('testcfg', file, pathname, description)
548 self.config = module.GetConfiguration(context, self.path) 548 self.config = module.GetConfiguration(context, self.path)
549 finally: 549 finally:
550 if file: 550 if file:
551 file.close() 551 file.close()
552 return self.config 552 return self.config
553 553
554 def GetBuildRequirements(self, path, context): 554 def GetBuildRequirements(self, path, context):
555 return self.GetConfiguration(context).GetBuildRequirements() 555 return self.GetConfiguration(context).GetBuildRequirements()
556 556
557 def ListTests(self, current_path, path, context, mode): 557 def ListTests(self, current_path, path, context, mode):
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 for entry in timed_tests[:20]: 1307 for entry in timed_tests[:20]:
1308 t = FormatTime(entry.duration) 1308 t = FormatTime(entry.duration)
1309 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) 1309 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
1310 index += 1 1310 index += 1
1311 1311
1312 return result 1312 return result
1313 1313
1314 1314
1315 if __name__ == '__main__': 1315 if __name__ == '__main__':
1316 sys.exit(Main()) 1316 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698