diff options
author | hegner <benedikt.hegner@cern.ch> | 2016-11-29 20:30:59 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-11-29 13:30:59 -0600 |
commit | c3e34b480a6402b5f08c94aa0e206b75c37fcff4 (patch) | |
tree | 6b53dbc9497d6e19107e34ca1d378b65171d81b6 /lib | |
parent | e3778923b6f7e45aea9c176e27bba94a2cc5392d (diff) | |
download | spack-c3e34b480a6402b5f08c94aa0e206b75c37fcff4.tar.gz spack-c3e34b480a6402b5f08c94aa0e206b75c37fcff4.tar.bz2 spack-c3e34b480a6402b5f08c94aa0e206b75c37fcff4.tar.xz spack-c3e34b480a6402b5f08c94aa0e206b75c37fcff4.zip |
CDash fixes (#2438)
use short spec instead of spec as CDash has a limitation in name length
mark all problems as 'FAILED' as CDash does not understand "ERRORED" status
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/install.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py index bc90e488a4..38994790ae 100644 --- a/lib/spack/spack/cmd/install.py +++ b/lib/spack/spack/cmd/install.py @@ -130,7 +130,7 @@ class TestSuite(object): ) self.root.set('failures', str(number_of_failures)) self.root.set('tests', str(len(self.tests))) - self.root.set('name', str(self.spec)) + self.root.set('name', self.spec.short_spec) self.root.set('hostname', platform.node()) for item in self.tests: @@ -247,7 +247,7 @@ def junit_output(spec, test_suite): test_case.set_duration(duration) text = fetch_text(self.build_log_path) test_case.set_result( - TestResult.ERRORED, + TestResult.FAILED, message='Unable to fetch package', text=text ) @@ -257,7 +257,7 @@ def junit_output(spec, test_suite): test_case.set_duration(duration) text = fetch_text(self.build_log_path) test_case.set_result( - TestResult.ERRORED, + TestResult.FAILED, message='Unexpected exception thrown during install', text=text ) @@ -267,7 +267,7 @@ def junit_output(spec, test_suite): test_case.set_duration(duration) text = fetch_text(self.build_log_path) test_case.set_result( - TestResult.ERRORED, + TestResult.FAILED, message='Unknown error', text=text ) |