run_perf_tests.py
def pull_device_data_files(sdk_path, device_id, source_dir, dest_dir, package_name, log_suffix):
    """Extrace test files from a device after a test run."""

    print 'Starting adb pull for test files'
    test_data_location = (source_dir + package_name +
                          '/files/testdata')
    pull_test_data_command = [os.path.join(sdk_path, 'platform-tools',
                                           'adb'),
                              '-s', device_id, 'pull', test_data_location,
                              dest_dir]
    log_file_path = os.path.join(dest_dir, 'logs', 'pull_test_files' + log_suffix + '.log')
    with open(log_file_path, 'w') as pull_test_data_log_file:
        try:
            subprocess.call(pull_test_data_command,
                            stdout=pull_test_data_log_file,
                            stderr=subprocess.STDOUT,
                            shell=False)
        except OSError:
            print 'ERROR extracting test files.'
Extrace test files from a device after a test run.
Extrace test files from a device after a test run.
Extrace test files from a device after a test run .
def pull_device_data_files(sdk_path, device_id, source_dir, dest_dir, package_name, log_suffix):
    print 'Starting adb pull for test files'
    test_data_location = (source_dir + package_name +
                          '/files/testdata')
    pull_test_data_command = [os.path.join(sdk_path, 'platform-tools',
                                           'adb'),
                              '-s', device_id, 'pull', test_data_location,
                              dest_dir]
    log_file_path = os.path.join(dest_dir, 'logs', 'pull_test_files' + log_suffix + '.log')
    with open(log_file_path, 'w') as pull_test_data_log_file:
        try:
            subprocess.call(pull_test_data_command,
                            stdout=pull_test_data_log_file,
                            stderr=subprocess.STDOUT,
                            shell=False)
        except OSError:
            print 'ERROR extracting test files.'
def pull_device_data_files ( sdk_path , device_id , source_dir , dest_dir , package_name , log_suffix ) : print 'Starting adb pull for test files' test_data_location = ( source_dir + package_name + '/files/testdata' ) pull_test_data_command = [ os . path . join ( sdk_path , 'platform-tools' , 'adb' ) , '-s' , device_id , 'pull' , test_data_location , dest_dir ] log_file_path = os . path . join ( dest_dir , 'logs' , 'pull_test_files' + log_suffix + '.log' ) with open ( log_file_path , 'w' ) as pull_test_data_log_file : try : subprocess . call ( pull_test_data_command , stdout = pull_test_data_log_file , stderr = subprocess . STDOUT , shell = False ) except OSError : print 'ERROR extracting test files.'
Extrace test files from a device after a test run.
Extrace test files from a device after a test run .
"""Extrace test files from a device after a test run."""
sdk_path
device_id
source_dir
dest_dir
package_name
log_suffix