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

Side by Side Diff: client/bin/job.py

Issue 3541002: Revert "Merge remote branch 'cros/upstream' into tempbranch2" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 2 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 | client/bin/kernel.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """The main job wrapper 1 """The main job wrapper
2 2
3 This is the core infrastructure. 3 This is the core infrastructure.
4 4
5 Copyright Andy Whitcroft, Martin J. Bligh 2006 5 Copyright Andy Whitcroft, Martin J. Bligh 2006
6 """ 6 """
7 7
8 import copy, os, platform, re, shutil, sys, time, traceback, types, glob 8 import copy, os, platform, re, shutil, sys, time, traceback, types, glob
9 import logging, getpass, errno, weakref 9 import logging, getpass, errno, weakref
10 import cPickle as pickle 10 import cPickle as pickle
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 self.install_pkg(dep, 'dep', dep_dir) 496 self.install_pkg(dep, 'dep', dep_dir)
497 except error.PackageInstallError: 497 except error.PackageInstallError:
498 # see if the dep is there locally 498 # see if the dep is there locally
499 pass 499 pass
500 500
501 # dep_dir might not exist if it is not fetched from the repos 501 # dep_dir might not exist if it is not fetched from the repos
502 if not os.path.exists(dep_dir): 502 if not os.path.exists(dep_dir):
503 raise error.TestError("Dependency %s does not exist" % dep) 503 raise error.TestError("Dependency %s does not exist" % dep)
504 504
505 os.chdir(dep_dir) 505 os.chdir(dep_dir)
506 if execfile('%s.py' % dep, {}) is None: 506 utils.system('./' + dep + '.py')
507 logging.info('Dependency %s successfuly built', dep)
508 507
509 508
510 def _runtest(self, url, tag, args, dargs): 509 def _runtest(self, url, tag, args, dargs):
511 try: 510 try:
512 l = lambda : test.runtest(self, url, tag, args, dargs) 511 l = lambda : test.runtest(self, url, tag, args, dargs)
513 pid = parallel.fork_start(self.resultdir, l) 512 pid = parallel.fork_start(self.resultdir, l)
514 parallel.fork_waitfor(self.resultdir, pid) 513 parallel.fork_waitfor(self.resultdir, pid)
515 except error.TestBaseException: 514 except error.TestBaseException:
516 # These are already classified with an error type (exit_status) 515 # These are already classified with an error type (exit_status)
517 raise 516 raise
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 assert myjob._record_indent == 0 1209 assert myjob._record_indent == 0
1211 1210
1212 myjob.complete(0) 1211 myjob.complete(0)
1213 1212
1214 1213
1215 site_job = utils.import_site_class( 1214 site_job = utils.import_site_class(
1216 __file__, "autotest_lib.client.bin.site_job", "site_job", base_client_job) 1215 __file__, "autotest_lib.client.bin.site_job", "site_job", base_client_job)
1217 1216
1218 class job(site_job): 1217 class job(site_job):
1219 pass 1218 pass
OLDNEW
« no previous file with comments | « no previous file | client/bin/kernel.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698