summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2016-07-22 19:16:42 -0400
committerGeorge Hartzell <hartzell@alerce.com>2016-08-02 11:16:46 -0400
commit08ff7b65afdeaaa0535094843940c0881905b27c (patch)
treee228c9bdb26d706e9813673dccf072814ba86833
parent4d72e0fb9db7716f40899ff4df24e0487a9bf826 (diff)
downloadspack-08ff7b65afdeaaa0535094843940c0881905b27c.tar.gz
spack-08ff7b65afdeaaa0535094843940c0881905b27c.tar.bz2
spack-08ff7b65afdeaaa0535094843940c0881905b27c.tar.xz
spack-08ff7b65afdeaaa0535094843940c0881905b27c.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py3
1 files changed, 2 insertions, 1 deletions
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 @@ class Perl(Package):
configure = Executable('./Configure')
configure("-des", "-Dprefix=" + prefix)
make()
- make("test")
+ if self.run_tests:
+ make("test")
make("install")
if '+cpanm' in spec: