summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2015-11-24 10:39:42 -0800
committerPeter Scheibel <scheibel1@llnl.gov>2015-11-24 10:39:42 -0800
commit70049185a5b3d132374dcb36138eaa081503f96c (patch)
treeb8a09628ca2bfb2a3ca06167074b1a1827a866e6 /lib
parent099fa1df34a157a323aa023b69c52399a441b81b (diff)
downloadspack-70049185a5b3d132374dcb36138eaa081503f96c.tar.gz
spack-70049185a5b3d132374dcb36138eaa081503f96c.tar.bz2
spack-70049185a5b3d132374dcb36138eaa081503f96c.tar.xz
spack-70049185a5b3d132374dcb36138eaa081503f96c.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/__init__.py5
-rw-r--r--lib/spack/spack/test/tally_plugin.py3
2 files changed, 3 insertions, 5 deletions
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)