summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2015-10-12 20:56:03 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2015-10-12 20:56:03 -0700
commit9f56d9c807d9d3efc7cde0591bd53d3db404dacc (patch)
treeb45c8065ed98fa9eeee64a2984854d6b076b59bd
parent6cd22e5786dbf40f1261b9b0410bdafbb6dd6f29 (diff)
downloadspack-9f56d9c807d9d3efc7cde0591bd53d3db404dacc.tar.gz
spack-9f56d9c807d9d3efc7cde0591bd53d3db404dacc.tar.bz2
spack-9f56d9c807d9d3efc7cde0591bd53d3db404dacc.tar.xz
spack-9f56d9c807d9d3efc7cde0591bd53d3db404dacc.zip
Don't create test output for any package that was already installed.
-rw-r--r--lib/spack/spack/cmd/testinstall.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/spack/spack/cmd/testinstall.py b/lib/spack/spack/cmd/testinstall.py
index 7ebadbd344..04e594c0b8 100644
--- a/lib/spack/spack/cmd/testinstall.py
+++ b/lib/spack/spack/cmd/testinstall.py
@@ -113,23 +113,23 @@ def testinstall(parser, args):
spack.do_checksum = False # TODO: remove this global.
specs = spack.cmd.parse_specs(args.packages, concretize=True)
+ newInstalls = list()
try:
for spec in specs:
- #import pdb; pdb.set_trace()
package = spack.db.get(spec)
- package.do_install(
- keep_prefix=False,
- keep_stage=False,
- ignore_deps=False,
- make_jobs=args.jobs,
- verbose=args.verbose,
- fake=False)
+ if not package.installed:
+ newInstalls.append(spec)
+ package.do_install(
+ keep_prefix=False,
+ keep_stage=False,
+ ignore_deps=False,
+ make_jobs=args.jobs,
+ verbose=args.verbose,
+ fake=False)
finally:
jrf = JunitResultFormat()
- for spec in specs:
+ for spec in newInstalls:
package = spack.db.get(spec)
- #import pdb; pdb.set_trace()
-
bId = BuildId(spec.name, spec.version, spec.dag_hash())
if package.installed: