diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-05-15 15:17:57 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-05-15 15:17:57 (GMT) |
commit | be4d85f186c0a3155d1f90b886ca720ee7efe43e (patch) | |
tree | f1c1a38300b862596d79051a1ffc39786f7cd02d /QMTest/TestCmd.py | |
parent | b104e3be7f6a4b5c0716e58086460dd3941151f1 (diff) | |
download | SCons-be4d85f186c0a3155d1f90b886ca720ee7efe43e.zip SCons-be4d85f186c0a3155d1f90b886ca720ee7efe43e.tar.gz SCons-be4d85f186c0a3155d1f90b886ca720ee7efe43e.tar.bz2 |
Fix test/sconsign/script/dblite.py test on Windows (adjusted expected result to match actual). Also made failing match_re more verbose for easier test debugging.
Diffstat (limited to 'QMTest/TestCmd.py')
-rw-r--r-- | QMTest/TestCmd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index a67e92f..1d5e4d0 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -474,6 +474,7 @@ def match_re(lines = None, res = None): if not is_List(res): res = res.split("\n") if len(lines) != len(res): + print "match_re: expected %d lines, found %d"%(len(res), len(lines)) return for i in range(len(lines)): s = "^" + res[i] + "$" @@ -483,6 +484,7 @@ def match_re(lines = None, res = None): msg = "Regular expression error in %s: %s" raise re.error(msg % (repr(s), e.args[0])) if not expr.search(lines[i]): + print "match_re: mismatch at line %d:\n search re='%s'\n line='%s'"%(i,s,lines[i]) return return 1 |