def check_full_vs_incr(self, seq, sha, stdout=sys.stdout):
full = self.saved_build_state_path(seq, 'full', sha)
incr = self.saved_build_state_path(seq, 'incr', sha)
common.debug_print("Comparing dirs %s vs. %s" % (os.path.relpath(full),
os.path.basename(incr)),
stderr=stdout)
d = filecmp.dircmp(full, incr, self.ignored_differences())
if not have_same_trees(full, incr, d):
message = ("Dirs differ: %s vs. %s" %
(os.path.relpath(full),
os.path.basename(incr)))
if self.expect_determinism():
raise EarlyExit(ActionResult(Result.FAIL, message))
else:
common.debug_print(message, stderr=stdout)
评论列表
文章目录