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

Side by Side Diff: client/site_tests/audiovideo_PlaybackRecordSemiAuto/audiovideo_PlaybackRecordSemiAuto.py

Issue 3116009: Update autotest tests to use make -j where possible. (Closed) Base URL: ssh://git@chromiumos-git/autotest.git
Patch Set: Convert last two tests to use utils.make(), saving another 20 seconds. Created 10 years, 4 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
« no previous file with comments | « client/deps/sysstat/sysstat.py ('k') | client/site_tests/audiovideo_V4L2/audiovideo_V4L2.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 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import copy, logging, os, pprint, re, threading, time, urllib 5 import copy, logging, os, pprint, re, threading, time, urllib
6 6
7 from autotest_lib.client.bin import site_ui_test 7 from autotest_lib.client.bin import site_ui_test
8 from autotest_lib.client.common_lib import error, site_httpd, site_ui, utils 8 from autotest_lib.client.common_lib import error, site_httpd, site_ui, utils
9 9
10 # HTML templates. 10 # HTML templates.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 Wrap a shell command within the necessary environment setup to get 284 Wrap a shell command within the necessary environment setup to get
285 access to the PulseAudio daemon. 285 access to the PulseAudio daemon.
286 """ 286 """
287 cmd = 'su chronos -c "%s"' % cmd 287 cmd = 'su chronos -c "%s"' % cmd
288 cmd = 'PULSE_RUNTIME_PATH=/var/run/pulse ' + cmd 288 cmd = 'PULSE_RUNTIME_PATH=/var/run/pulse ' + cmd
289 return cmd 289 return cmd
290 290
291 291
292 def setup(self): 292 def setup(self):
293 os.chdir(self.srcdir) 293 os.chdir(self.srcdir)
294 utils.system('make clean') 294 utils.make('clean')
295 utils.system('make') 295 utils.make()
296 296
297 297
298 def initialize(self, creds = '$default'): 298 def initialize(self, creds = '$default'):
299 self._playback_devices = self.enumerate_playback_devices() 299 self._playback_devices = self.enumerate_playback_devices()
300 self._record_devices = self.enumerate_record_devices() 300 self._record_devices = self.enumerate_record_devices()
301 self._test_tones_path = os.path.join(self.srcdir, "test_tones") 301 self._test_tones_path = os.path.join(self.srcdir, "test_tones")
302 if not (os.path.exists(self._test_tones_path) and 302 if not (os.path.exists(self._test_tones_path) and
303 os.access(self._test_tones_path, os.X_OK)): 303 os.access(self._test_tones_path, os.X_OK)):
304 raise error.TestError( 304 raise error.TestError(
305 '%s is not an executable' % self._test_tones_path) 305 '%s is not an executable' % self._test_tones_path)
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 cmd = ('%(exec)s ' 1242 cmd = ('%(exec)s '
1243 '-t %(type)s -h %(frequency)f -l %(tone_length_sec)f ' 1243 '-t %(type)s -h %(frequency)f -l %(tone_length_sec)f '
1244 '-c %(channels)d' % args) 1244 '-c %(channels)d' % args)
1245 if args['active_channel'] is not None: 1245 if args['active_channel'] is not None:
1246 cmd += ' -a %s' % args['active_channel'] 1246 cmd += ' -a %s' % args['active_channel']
1247 if args['type'] == 'tone': 1247 if args['type'] == 'tone':
1248 logging.info('[tone %dHz]' % args['frequency']) 1248 logging.info('[tone %dHz]' % args['frequency'])
1249 elif args['type'] == 'scale': 1249 elif args['type'] == 'scale':
1250 logging.info('[A# harmonic minor scale]') 1250 logging.info('[A# harmonic minor scale]')
1251 utils.system(self.pacmd(cmd)) 1251 utils.system(self.pacmd(cmd))
OLDNEW
« no previous file with comments | « client/deps/sysstat/sysstat.py ('k') | client/site_tests/audiovideo_V4L2/audiovideo_V4L2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698