diff options
author | Ben Morgan <drbenmorgan@users.noreply.github.com> | 2021-10-26 17:55:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 18:55:54 +0200 |
commit | a2e5a288923e304eb31c3eb77716ddd607418dde (patch) | |
tree | d010d0936ce6bd838a13a83e353a68b7616f55cb | |
parent | 94a973382289cc7b68654590181429ed855b8b03 (diff) | |
download | spack-a2e5a288923e304eb31c3eb77716ddd607418dde.tar.gz spack-a2e5a288923e304eb31c3eb77716ddd607418dde.tar.bz2 spack-a2e5a288923e304eb31c3eb77716ddd607418dde.tar.xz spack-a2e5a288923e304eb31c3eb77716ddd607418dde.zip |
virtest: prevent out-of-order build/test (#26944)
Use of `-R` flag to CTest command causes "empty-14" test to run,
by matching "empty", before the empty-14 target is built.
Patch CTest command in buildscript to match name exactly.
-rw-r--r-- | var/spack/repos/builtin/packages/virtest/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/virtest/package.py b/var/spack/repos/builtin/packages/virtest/package.py index c1fe879af8..678683946c 100644 --- a/var/spack/repos/builtin/packages/virtest/package.py +++ b/var/spack/repos/builtin/packages/virtest/package.py @@ -17,6 +17,11 @@ class Virtest(CMakePackage): version('master', branch='master') + def patch(self): + script = FileFilter('tests/CMakeLists.txt') + script.filter(r' *\${CMAKE_CTEST_COMMAND} -V -R \${target}', + '${CMAKE_CTEST_COMMAND} -V -R "^${target}$"') + def setup_run_environment(self, env): env.prepend_path('CPATH', self.prefix.include.vir) |