def _apply_patch(self, patch):
     old_working_directory = os.getcwd()
     os.chdir(self._dest)
     error_code = subprocess.call(['patch', '-p1', '-f', '-i', get_path_from_project_root(patch)])
     os.chdir(old_working_directory)
     if error_code:
         raise Exception('Cannot apply patch, will skip current benchmark_path - Error: %s' % error_code)
 def _apply_patch(self, patch):
     old_working_directory = os.getcwd()
     os.chdir(self._dest)
     error_code = subprocess.call(['patch', '-p1', '-f', '-i', get_path_from_project_root(patch)])
     os.chdir(old_working_directory)
     if error_code:
         raise Exception('Cannot apply patch, will skip current benchmark_path - Error: %s' % error_code)
 def _copy_benchmark_to_temp_dir(self, benchmark_path):
     shutil.copytree(get_path_from_project_root(benchmark_path), self._dest)
 def _copy_benchmark_to_temp_dir(self, benchmark_path):
     shutil.copytree(get_path_from_project_root(benchmark_path), self._dest)