summaryrefslogtreecommitdiff
path: root/lib/spack/spack/report.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/report.py')
-rw-r--r--lib/spack/spack/report.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/spack/spack/report.py b/lib/spack/spack/report.py
index 084a9d3883..8697d98f5e 100644
--- a/lib/spack/spack/report.py
+++ b/lib/spack/spack/report.py
@@ -171,8 +171,15 @@ class InfoCollector(object):
value = None
try:
value = do_fn(instance, *args, **kwargs)
- package['result'] = 'success'
- package['stdout'] = fetch_log(pkg, do_fn, self.dir)
+
+ externals = kwargs.get('externals', False)
+ skip_externals = pkg.spec.external and not externals
+ if do_fn.__name__ == 'do_test' and skip_externals:
+ package['result'] = 'skipped'
+ package['stdout'] = 'Skipped external package'
+ else:
+ package['result'] = 'success'
+ package['stdout'] = fetch_log(pkg, do_fn, self.dir)
package['installed_from_binary_cache'] = \
pkg.installed_from_binary_cache
if do_fn.__name__ == '_install_task' and installed_already: