Beispiel #1
0
def _get_arc_data_dir(parsed_args):
  if parsed_args.crx_name_override:
    # We use crx_name_override to isolate /mnt and /data of non pepper FS mode.
    crx_name = parsed_args.crx_name_override
  else:
    # The last APK listed is the one that is actually run. For consistency, use
    # it also for the path to the unpacked CRX.
    crx_name = os.path.splitext(os.path.basename(
        parsed_args.apk_path_list[-1]))[0]
  # Chrome does not like spaces in paths to CRXs to load.
  return os.path.join(build_common.get_data_root_dir(),
                      crx_name.replace(' ', '_'))
Beispiel #2
0
def _get_arc_data_dir(parsed_args):
    if parsed_args.crx_name_override:
        # We use crx_name_override to isolate /mnt and /data of non pepper FS mode.
        crx_name = parsed_args.crx_name_override
    else:
        # The last APK listed is the one that is actually run. For consistency, use
        # it also for the path to the unpacked CRX.
        crx_name = os.path.splitext(
            os.path.basename(parsed_args.apk_path_list[-1]))[0]
    # Chrome does not like spaces in paths to CRXs to load.
    return os.path.join(build_common.get_data_root_dir(),
                        crx_name.replace(' ', '_'))
Beispiel #3
0
 def prepare(self, test_methods_to_run):
     data_roots_dir = os.path.join(build_common.get_data_root_dir(),
                                   self.name)
     input_dir = self._unpacked_dir
     shutil.rmtree(data_roots_dir, ignore_errors=True)
     shutil.copytree(input_dir, data_roots_dir)
Beispiel #4
0
 def prepare(self, test_methods_to_run):
   data_roots_dir = os.path.join(build_common.get_data_root_dir(), self.name)
   input_dir = self._unpacked_dir
   shutil.rmtree(data_roots_dir, ignore_errors=True)
   shutil.copytree(input_dir, data_roots_dir)