From 08ff7b65afdeaaa0535094843940c0881905b27c Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Fri, 22 Jul 2016 19:16:42 -0400 Subject: [PATCH] Make running perl's tests conditional Make running perl's tests conditional, one must now specify the `--run-tests` flag to the `spack install` command in order to run the tests. On one system (8 core, 16GB Digital Ocean Droplet), installing without tests takes 3 minutes, with tests takes 16 minutes. --- var/spack/repos/builtin/packages/perl/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 97b28436c6..b390ce3bfa 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -33,7 +33,8 @@ def install(self, spec, prefix): configure = Executable('./Configure') configure("-des", "-Dprefix=" + prefix) make() - make("test") + if self.run_tests: + make("test") make("install") if '+cpanm' in spec: