parameters: (self, rebaselines)
docstring: Sets the expected results file to use the hashes of the images in
          the rebaselines list. If a expected result image is not in rebaselines
          at all, the old hash will be used.
  
          @param rebaselines A list of image paths to use the hash of.
docstring_summary: Sets the expected results file to use the hashes of the images in
          the rebaselines list. If a expected result image is not in rebaselines
          at all, the old hash will be used.
docstring_tokens: Sets the expected results file to use the hashes of the images in the rebaselines list . If a expected result image is not in rebaselines at all the old hash will be used .
function: def commit_rebaselines(self, rebaselines):
          """Sets the expected results file to use the hashes of the images in
          the rebaselines list. If a expected result image is not in rebaselines
          at all, the old hash will be used.
  
          @param rebaselines A list of image paths to use the hash of.
          """
          # Reset all expectations to their old hashes because some of them may
          # have been set to the new hash by a previous call to this function.
          for expectation in self._expectations:
              expectation.is_rebaselined = False
              self._set_expected_hash(expectation.device_name,
                                      expectation.image_name,
                                      expectation.expected_hash)
  
          # Take all the images to rebaseline
          for image_path in rebaselines:
              # Get the metadata about the image at the path.
              is_actual, expectation = self.image_map[image_path]
  
              expectation.is_rebaselined = is_actual
              expectation_hash = expectation.actual_hash if is_actual else\
                                 expectation.expected_hash
  
              # Write out that image's hash directly to the expected results file.
              self._set_expected_hash(expectation.device_name,
                                      expectation.image_name,
                                      expectation_hash)
  
          self._load_skpdiff_output()
function_tokens: def commit_rebaselines ( self , rebaselines ) : # Reset all expectations to their old hashes because some of them may # have been set to the new hash by a previous call to this function. for expectation in self . _expectations : expectation . is_rebaselined = False self . _set_expected_hash ( expectation . device_name , expectation . image_name , expectation . expected_hash ) # Take all the images to rebaseline for image_path in rebaselines : # Get the metadata about the image at the path. is_actual , expectation = self . image_map [ image_path ] expectation . is_rebaselined = is_actual expectation_hash = expectation . actual_hash if is_actual else expectation . expected_hash # Write out that image's hash directly to the expected results file. self . _set_expected_hash ( expectation . device_name , expectation . image_name , expectation_hash ) self . _load_skpdiff_output ( )