test_one not working as tests after skipped test failing, because

on_skipped callback being passed an extra item parameter that it wasn't
expecting.
Fixed it so that on_skipped in TestCallbacks accepts and ignores the
extra parameter
Extra parameter was added in 4b9b9a8a5b
but not really clear why from commit message
This commit is contained in:
Will Thames 2012-08-01 12:26:45 +10:00 committed by Will Thames
parent 9f7ad62376
commit 845a7ac5ae

View file

@ -33,7 +33,7 @@ class TestCallbacks(object):
def on_setup(self):
EVENTS.append([ 'primary_setup' ])
def on_skipped(self, host):
def on_skipped(self, host, item=None):
EVENTS.append([ 'skipped', [ host ]])
def on_import_for_host(self, host, filename):