comparison talosnames/api.py @ 30:3f7bc028d6eb

better diagnostics
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Jul 2012 14:23:06 -0700
parents 905daa511aa4
children 15f17eeb1813
comparison
equal deleted inserted replaced
29:905daa511aa4 30:3f7bc028d6eb
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 print "\n%s" % subprocess.list2cmdline(command)
124 call(['PerfConfigurator'] + command, stdout=subprocess.PIPE, cwd=talos_dir) 124 call(['PerfConfigurator'] + command, stdout=subprocess.PIPE, cwd=talos_dir)
125 assert os.path.exists(outfile) 125 assert os.path.exists(outfile)
126 config = yaml.load(file(outfile)) 126 config = yaml.load(file(outfile))
127 self._talos_configs[name] = config 127 self._talos_configs[name] = config
128 return config 128 return config