Merge pull request #3612 from nicolasnoble/useful-assert-is-useful

Get sanity to output more interesting information if it fails.
pull/3625/head
Craig Tiller 9 years ago
commit a9154a36fb
  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