def generic_regress_test(self, extra_args): """Used for regress tests below""" in1, in2 = self.make_input_dirs() Myrm(self.out_rp.path) restore_dir = self.root_rp.append('longname_out') Myrm(restore_dir.path) rdiff_backup(1, 1, in1.path, self.out_rp.path, 10000, extra_options=extra_args) rdiff_backup(1, 1, in2.path, self.out_rp.path, 20000, extra_options=extra_args) # Regress repository back to in1 condition Globals.rbdir = self.out_rp.append_path('rdiff-backup-data') self.add_current_mirror(10000) self.out_rp.setdata() regress.Regress(self.out_rp) # Restore in1 and compare rdiff_backup(1, 1, self.out_rp.path, restore_dir.path, 30000, extra_options='-r now ' + extra_args) self.check_dir1(restore_dir)
def regress_to_time_local(self, time): """Regress self.output_rp to time by running regress locally""" self.output_rp.setdata() self.output_rbdir_rp.setdata() self.add_current_mirror(time) regress.Regress(self.output_rp)