Ejemplo n.º 1
0
    def setUp(self):
        super(CopyRemoteDirectoryToLocalTest, self).setUp()

        # Clear and create temporary directory on device.
        self.device_temp_dir = constants.DEVICE_TMP_DIR
        adb.remove_directory(self.device_temp_dir, recreate=True)

        # Create local temp directory.
        self.local_temp_dir = tempfile.mkdtemp()
Ejemplo n.º 2
0
  def setUp(self):
    """Setup for set options test."""
    super(SetOptionsTest, self).setUp()

    test_helpers.patch(self, ['clusterfuzz._internal.metrics.logs.log_error'])

    if settings.get_sanitizer_tool_name():
      self.skipTest('This test is not applicable on a system sanitizer build.')

    # Clear and create temporary directory on device.
    self.device_temp_dir = constants.DEVICE_TMP_DIR
    adb.remove_directory(self.device_temp_dir, recreate=True)
Ejemplo n.º 3
0
 def tearDown(self):
     adb.remove_directory(self.device_temp_dir)
     shell.remove_directory(self.local_temp_dir)
Ejemplo n.º 4
0
 def tearDown(self):
     adb.remove_directory(self.device_temp_dir)
Ejemplo n.º 5
0
    def setUp(self):
        super(WriteDataToFileTest, self).setUp()

        # Clear and create temporary directory on device.
        self.device_temp_dir = constants.DEVICE_TMP_DIR
        adb.remove_directory(self.device_temp_dir, recreate=True)