From 70049185a5b3d132374dcb36138eaa081503f96c Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Tue, 24 Nov 2015 10:39:42 -0800 Subject: 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. --- lib/spack/spack/test/__init__.py | 5 +++-- lib/spack/spack/test/tally_plugin.py | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/test/__init__.py b/lib/spack/spack/test/__init__.py index 9d577d6539..327a4886b9 100644 --- a/lib/spack/spack/test/__init__.py +++ b/lib/spack/spack/test/__init__.py @@ -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.", diff --git a/lib/spack/spack/test/tally_plugin.py b/lib/spack/spack/test/tally_plugin.py index d8638bf7e3..b38f4f3134 100644 --- a/lib/spack/spack/test/tally_plugin.py +++ b/lib/spack/spack/test/tally_plugin.py @@ -57,9 +57,6 @@ class Tally(Plugin): 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) -- cgit v1.2.3-70-g09d2