Activation of Tally plugin to count tests. It doesn't appear to be actually
counting the individual unit tests correctly so I need to chase that down.
This commit is contained in:
parent
099fa1df34
commit
70049185a5
@ -85,13 +85,14 @@ def run(names, verbose=False):
|
||||
sys.exit(1)
|
||||
|
||||
tally = Tally()
|
||||
tally.enabled = True
|
||||
for test in names:
|
||||
module = 'spack.test.' + test
|
||||
print module
|
||||
|
||||
tty.msg("Running test: %s" % test)
|
||||
result = nose.run(argv=["", module], plugins=[tally])
|
||||
|
||||
activateTally = "--with-%s" % spack.test.tally_plugin.Tally.name
|
||||
result = nose.run(argv=["", activateTally, module], addplugins=[tally])
|
||||
|
||||
succeeded = not tally.failCount and not tally.errorCount
|
||||
tty.msg("Tests Complete.",
|
||||
|
@ -57,9 +57,6 @@ def options(self, parser, env=os.environ):
|
||||
def configure(self, options, conf):
|
||||
super(Tally, self).configure(options, conf)
|
||||
|
||||
def begin(self):
|
||||
print ">>> TALLY PLUGIN BEGIN"
|
||||
|
||||
def addSuccess(self, test):
|
||||
self.successes.add(test)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user