summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/find-externals1/package.py
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-03-16 16:41:34 -0400
committerPeter Scheibel <scheibel1@llnl.gov>2022-03-17 09:01:01 -0700
commit4aee27816e7101753aeb392e868096236a26d84d (patch)
tree2a6099f9b5305997e71e397aa2fae7f624786b90 /var/spack/repos/builtin.mock/packages/find-externals1/package.py
parente63b4f752a73a67d24802a21bdf4c8a931216d2e (diff)
downloadspack-4aee27816e7101753aeb392e868096236a26d84d.tar.gz
spack-4aee27816e7101753aeb392e868096236a26d84d.tar.bz2
spack-4aee27816e7101753aeb392e868096236a26d84d.tar.xz
spack-4aee27816e7101753aeb392e868096236a26d84d.zip
Windows Support: Testing Suite integration
Broaden support for execution of the test suite on Windows. General bug and review fixups
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/find-externals1/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/find-externals1/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin.mock/packages/find-externals1/package.py b/var/spack/repos/builtin.mock/packages/find-externals1/package.py
index 9200668d7c..c85598e891 100644
--- a/var/spack/repos/builtin.mock/packages/find-externals1/package.py
+++ b/var/spack/repos/builtin.mock/packages/find-externals1/package.py
@@ -20,11 +20,11 @@ class FindExternals1(AutotoolsPackage):
exe_to_path = dict(
(os.path.basename(p), p) for p in exes_in_prefix
)
- if 'find-externals1-exe' not in exe_to_path:
- return None
-
+ exes = [x for x in exe_to_path.keys() if 'find-externals1-exe' in x]
+ if not exes:
+ return
exe = spack.util.executable.Executable(
- exe_to_path['find-externals1-exe'])
+ exe_to_path[exes[0]])
output = exe('--version', output=str)
if output:
match = re.search(r'find-externals1.*version\s+(\S+)', output)