summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBen Morgan <drbenmorgan@users.noreply.github.com>2021-10-26 17:55:54 +0100
committerGitHub <noreply@github.com>2021-10-26 18:55:54 +0200
commita2e5a288923e304eb31c3eb77716ddd607418dde (patch)
treed010d0936ce6bd838a13a83e353a68b7616f55cb /var
parent94a973382289cc7b68654590181429ed855b8b03 (diff)
downloadspack-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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/virtest/package.py5
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)