diff options
Diffstat (limited to 'lib/spack/spack/report.py')
-rw-r--r-- | lib/spack/spack/report.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/spack/spack/report.py b/lib/spack/spack/report.py index 74e5caf194..d092fe1c69 100644 --- a/lib/spack/spack/report.py +++ b/lib/spack/spack/report.py @@ -228,15 +228,14 @@ class collect_info(object): Args: format_name (str or None): one of the supported formats - install_command (str): the command line passed to spack - cdash_upload_url (str or None): where to upload the report + args (dict): args passed to spack install Raises: ValueError: when ``format_name`` is not in ``valid_formats`` """ - def __init__(self, format_name, install_command, cdash_upload_url): + def __init__(self, format_name, args): self.filename = None - if cdash_upload_url: + if args.cdash_upload_url: self.format_name = 'cdash' self.filename = 'cdash_report' else: @@ -245,8 +244,7 @@ class collect_info(object): if self.format_name not in valid_formats: raise ValueError('invalid report type: {0}' .format(self.format_name)) - self.report_writer = report_writers[self.format_name]( - install_command, cdash_upload_url) + self.report_writer = report_writers[self.format_name](args) def concretization_report(self, msg): self.report_writer.concretization_report(self.filename, msg) |