summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-04-27 19:28:13 +0200
committerMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-04-27 19:28:13 +0200
commitb1ba869b37803ba9cda28ab64b7f0052e8eda11d (patch)
tree9206f062aa3d2b5e041e6b966e2816150ffa1793 /lib
parent4846ab70d8c805c6533d90b9345295c4160b4e35 (diff)
downloadspack-b1ba869b37803ba9cda28ab64b7f0052e8eda11d.tar.gz
spack-b1ba869b37803ba9cda28ab64b7f0052e8eda11d.tar.bz2
spack-b1ba869b37803ba9cda28ab64b7f0052e8eda11d.tar.xz
spack-b1ba869b37803ba9cda28ab64b7f0052e8eda11d.zip
test-install : fixed error in logic exposed by tests
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/test-install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/test-install.py b/lib/spack/spack/cmd/test-install.py
index e323969634..3277e15548 100644
--- a/lib/spack/spack/cmd/test-install.py
+++ b/lib/spack/spack/cmd/test-install.py
@@ -115,7 +115,7 @@ class TestCase(object):
def set_result(self, result_type, message=None, error_type=None, text=None):
self.result_type = result_type
result = TestCase.results[self.result_type]
- if result is not None or result is not TestResult.PASSED:
+ if result is not None and result is not TestResult.PASSED:
subelement = ET.SubElement(self.element, result)
if error_type is not None:
subelement.set('type', error_type)