fixed some little testing problems

This commit is contained in:
David Halter
2013-04-21 22:55:12 +04:30
parent e494be2537
commit 43306429f9

View File

@@ -332,6 +332,7 @@ if __name__ == '__main__':
cases += collect_dir_tests(completion_test_dir, test_files, True)
def file_change(current, tests, fails):
if current is not None:
current = os.path.basename(current)
print('%s \t\t %s tests and %s fails.' % (current, tests, fails))
@@ -340,7 +341,7 @@ if __name__ == '__main__':
return 0
else:
print("\ttest fail @%d, actual = %s, desired = %s"
% (case.line_nr, actual, desired))
% (case.line_nr - 1, actual, desired))
return 1
current = cases[0].path if cases else None