Lines Matching +full:generate +full:- +full:lockfile
1 #!/usr/bin/python2 -u
58 parser.add_option("-m", help="Send mail for FAILED tests",
60 parser.add_option("-r", help="Reparse the results of a job",
62 parser.add_option("-o", help="Parse a single results directory",
64 parser.add_option("-l", help=("Levels of subdirectories to include "
67 parser.add_option("-n", help="No blocking on an existing parse",
69 parser.add_option("-s", help="Database server hostname",
71 parser.add_option("-u", help="Database username", dest="db_user",
73 parser.add_option("-p", help="Database password", dest="db_pass",
75 parser.add_option("-d", help="Database name", dest="db_name",
77 parser.add_option("--dry-run", help="Do not actually commit any results.",
80 "--detach", action="store_true",
84 parser.add_option("--write-pidfile",
88 parser.add_option("--record-duration",
92 parser.add_option("--suite-report",
98 parser.add_option("--datastore-creds",
104 parser.add_option("--export-to-gcloud-path",
110 parser.add_option("--disable-perf-upload",
131 # If it is a lab server, the script is under ~chromeos-test/
132 if os.path.exists(os.path.expanduser('~chromeos-test/%s' %
134 path = os.path.expanduser('~chromeos-test/%s' % export_script)
158 format_string = "%-12s %-20s %-12s %-10s %s"
332 e.g. '1234-chromeos-test/host1'
395 (time.time()-start_time))
479 # Generate a suite report.
481 # jobname will be <JOB_ID>-<USERNAME>/hostless, the suite field will not be
482 # NULL. Only generate timeline report when datastore_parent_key is given.
490 "--output='%s' --debug" %
495 dump_cmd += " --provision_job_id=%d" % int(provision_job_id)
503 timing_log, '--parent_key',
647 @returns: The job name of the parsed job, e.g. '123-chromeos-test/host1'
649 job_elements = path.split("/")[-level:]
666 set(['123-chromeos-test/host1', '123-chromeos-test/host2'])
671 # parse status.log in current directory, if it exists. multi-machine
678 # multi-machine job
760 lockfile = open(os.path.join(path, ".parse.lock"), "w")
765 fcntl.flock(lockfile, flags)
769 lockfile.close()
779 fcntl.flock(lockfile, fcntl.LOCK_UN)
780 lockfile.close()
819 tko_utils.dprint("No side_effects.Config found in %s - "