diff -r a027301cec6d -r 96c6dff32760 tests/testing/tests.py --- a/tests/testing/tests.py Thu Sep 15 18:31:33 2016 +0100 +++ b/tests/testing/tests.py Thu Sep 15 18:31:48 2016 +0100 @@ -236,6 +236,7 @@ # and other files that we don't care about. ref_ignore_files = FileIgnoreList( names=( + "EMPTY", ), rex=( # Mercurial sometimes leaves backups when applying MQ patches r"\.orig$", @@ -284,17 +285,21 @@ ] def verify_units(self): - return [ - DiffStatFile(ref_dir=self.ref_dir, test_dir=self.output_dir, - skip=self.skip_diff_stat) - ] + [ + ref_files = set(self.ref_files()) + units = [] + if "stats.txt" in ref_files: + units.append( + DiffStatFile(ref_dir=self.ref_dir, test_dir=self.output_dir, + skip=self.skip_diff_stat)) + units += [ DiffOutFile(f, ref_dir=self.ref_dir, test_dir=self.output_dir, skip=self.skip_diff_out) - for f in self.ref_files() - if f not in ClassicTest.diff_ignore_files + for f in ref_files if f not in ClassicTest.diff_ignore_files ] + return units + def update_ref(self): for fname in self.ref_files(): shutil.copy(