Skip to content

Commit 88b4633

Browse files
author
Vasileios Karakasis
committed
Fine tune Spack tutorial text
1 parent 152c8d7 commit 88b4633

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/tutorial_build_automation.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,13 @@ Here is the test's code:
109109

110110

111111
When :attr:`~reframe.core.pipeline.RegressionTest.build_system` is set to ``'Spack'``, ReFrame will leverage Spack environments in order to build the test code.
112-
If the environment is not specified by the user, ReFrame will automatically create one inside the stage directory.
113-
That's the case in this example, where the software to be built is specified through the attribute :attr:`~reframe.core.buildsystems.Spack.specs`
114-
115-
When Spack environments are specified by the user, ReFrame treats them as *test resources* so it expects to find them under the test's :attr:`~reframe.core.pipeline.RegressionTest.sourcesdir`, which defaults to ``'src'``.
112+
By default, ReFrame will create a new Spack environment in the test's stage directory and add the requested :attr:`~reframe.core.buildsystems.Spack.specs` to it.
113+
Users may also specify an existing Spack environment by setting the :attr:`~reframe.core.buildsystems.Spack.environment` attribute.
114+
In this case, ReFrame treats the environment as a *test resource* so it expects to find it under the test's :attr:`~reframe.core.pipeline.RegressionTest.sourcesdir`, which defaults to ``'src'``.
116115

117116
As with every other test, ReFrame will copy the test's resources to its stage directory before building it.
118-
ReFrame will then activate the generated environment, add the given specs using the ``spack add`` command and install them.
119-
Here is what ReFrame generates as a build script in this example:
117+
ReFrame will then activate the generated environment (either the one provided by the user or the one generated by ReFrame), add the given specs using the ``spack add`` command and, finally, install the packages in the environment.
118+
Here is what ReFrame generates as a build script for this example:
120119

121120
.. code:: bash
122121

0 commit comments

Comments
 (0)