TestHP: Pass name to print function
This commit is contained in:
parent
1236460e09
commit
3c5908224c
|
@ -9,10 +9,11 @@ import Database
|
||||||
import SQL
|
import SQL
|
||||||
import fpdb_import
|
import fpdb_import
|
||||||
|
|
||||||
def error_report( filename, hand, stat, ghash, testhash):
|
def error_report( filename, hand, stat, ghash, testhash, player):
|
||||||
print "Regression Test Error:"
|
print "Regression Test Error:"
|
||||||
print "\tFile: %s" % filename
|
print "\tFile: %s" % filename
|
||||||
print "\tStat: %s" % stat
|
print "\tStat: %s" % stat
|
||||||
|
print "\tPlayer: %s" % player
|
||||||
|
|
||||||
def compare(leaf, importer):
|
def compare(leaf, importer):
|
||||||
filename = leaf
|
filename = leaf
|
||||||
|
@ -50,7 +51,7 @@ def compare(leaf, importer):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# Stats don't match - Doh!
|
# Stats don't match - Doh!
|
||||||
error_report(filename, hand, stat, ghash, testhash)
|
error_report(filename, hand, stat, ghash, testhash, p)
|
||||||
|
|
||||||
importer.clearFileList()
|
importer.clearFileList()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user