[Pkg-mozext-commits] [adblock-plus] 303/464: Made tests produce a proper diff on failure, disabled failing tests
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 170f5987a9bf49c41f8d804ba2721c78276b74cf
Author: Wladimir Palant <trev at adblockplus.org>
Date: Fri Oct 12 14:58:05 2012 +0200
Made tests produce a proper diff on failure, disabled failing tests
--HG--
rename : autotest/test_comments.js => autotest/~test_comments.js
rename : autotest/test_globals.js => autotest/~test_globals.js
rename : autotest/test_trueast.js => autotest/~test_trueast.js
---
autotest.py | 6 ++++--
autotest/{test_comments.js => ~test_comments.js} | 0
autotest/{test_globals.js => ~test_globals.js} | 0
autotest/{test_trueast.js => ~test_trueast.js} | 0
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/autotest.py b/autotest.py
index d09cdef..4c71c5d 100644
--- a/autotest.py
+++ b/autotest.py
@@ -5,7 +5,7 @@
# version 2.0 (the "License"). You can obtain a copy of the License at
# http://mozilla.org/MPL/2.0/.
-import sys, os, subprocess, re
+import sys, os, subprocess, re, difflib
from utils import ensureJSShell
def run_tests():
@@ -41,7 +41,9 @@ def run_tests():
print '%s passed' % name
else:
print '%s failed! Log:' % name
- print out
+ for line in difflib.unified_diff(expected.split('\n'), out.split('\n'), fromfile=file + '.expected', tofile=file + '.output'):
+ print line
+ print
if __name__ == '__main__':
run_tests()
diff --git a/autotest/test_comments.js b/autotest/~test_comments.js
similarity index 100%
rename from autotest/test_comments.js
rename to autotest/~test_comments.js
diff --git a/autotest/test_globals.js b/autotest/~test_globals.js
similarity index 100%
rename from autotest/test_globals.js
rename to autotest/~test_globals.js
diff --git a/autotest/test_trueast.js b/autotest/~test_trueast.js
similarity index 100%
rename from autotest/test_trueast.js
rename to autotest/~test_trueast.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list