diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-27 19:28:13 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-27 19:28:13 +0200 |
commit | b1ba869b37803ba9cda28ab64b7f0052e8eda11d (patch) | |
tree | 9206f062aa3d2b5e041e6b966e2816150ffa1793 /lib | |
parent | 4846ab70d8c805c6533d90b9345295c4160b4e35 (diff) | |
download | spack-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.py | 2 |
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) |