Get sanity to output more interesting information if it fails.

pull/3612/head
Nicolas "Pixel" Noble 10 years ago
parent 8a50de7e65
commit 9baaeade7c
  1. 4
      tools/buildgen/generate_projects.py

@ -78,8 +78,8 @@ jobset.run(jobs)
if test is not None:
for s, g in test.iteritems():
if os.path.isfile(g):
assert(0 == os.system('diff %s %s' % (s, g)))
assert 0 == os.system('diff %s %s' % (s, g)), s
os.unlink(g)
else:
assert(0 == os.system('diff -r %s %s' % (s, g)))
assert 0 == os.system('diff -r %s %s' % (s, g)), s
shutil.rmtree(g, ignore_errors=True)

Loading…
Cancel
Save