Mercurial > mozilla > hg > talosnames
comparison talosnames/api.py @ 29:905daa511aa4
minor improvements
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 17 Jul 2012 14:17:41 -0700 |
parents | c6a042aad739 |
children | 3f7bc028d6eb |
comparison
equal
deleted
inserted
replaced
28:892dd6b58f05 | 29:905daa511aa4 |
---|---|
118 command = self.buildbot_command(name) | 118 command = self.buildbot_command(name) |
119 assert command is not None, "Suite not found: %s" % name | 119 assert command is not None, "Suite not found: %s" % name |
120 outfile = tempfile.mktemp(suffix='.yml') | 120 outfile = tempfile.mktemp(suffix='.yml') |
121 command += ['-o', outfile] # add an output file | 121 command += ['-o', outfile] # add an output file |
122 command += ['-e', sys.executable] # add a pretend firefox so PerfConfigurator won't whine | 122 command += ['-e', sys.executable] # add a pretend firefox so PerfConfigurator won't whine |
123 print "\n%s" % command | |
123 call(['PerfConfigurator'] + command, stdout=subprocess.PIPE, cwd=talos_dir) | 124 call(['PerfConfigurator'] + command, stdout=subprocess.PIPE, cwd=talos_dir) |
124 assert os.path.exists(outfile) | 125 assert os.path.exists(outfile) |
125 config = yaml.load(file(outfile)) | 126 config = yaml.load(file(outfile)) |
126 self._talos_configs[name] = config | 127 self._talos_configs[name] = config |
127 return config | 128 return config |