Skip to content

Commit

Permalink
Debug Failing Tests (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich authored Jun 25, 2024
1 parent 773e373 commit 034f0ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9, 3.12]
spack-version: [0.21.2, 0.22.0, develop]
spack-version: [v0.21.2, v0.22.0, develop]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -30,9 +30,9 @@ jobs:
uses: actions/checkout@v4
with:
repository: spack/spack
ref: ${{ matrix.spack-verions }}
ref: ${{ matrix.spack-version }}
path: spack
- name: Setup Spack ${{ matrix.spack-verion }}
- name: Setup Spack ${{ matrix.spack-version }}
run: echo "$PWD/spack/bin" >> "$GITHUB_PATH"
- name: Install extension
run: |
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
spack-version: [0.21.2, 0.22.0, develop]
spack-version: [v0.21.2, v0.22.0, develop]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -89,9 +89,9 @@ jobs:
uses: actions/checkout@v4
with:
repository: spack/spack
ref: ${{ matrix.spack-verions }}
ref: ${{ matrix.spack-version }}
path: spack
- name: Setup Spack ${{ matrix.spack-verion }}
- name: Setup Spack ${{ matrix.spack-version }}
run: echo "$PWD/spack/bin" >> "$GITHUB_PATH"
- name: Install extension
run: |
Expand All @@ -101,9 +101,10 @@ jobs:
run: |
. spack/share/spack/setup-env.sh
. scripts/quick_commands.sh
spack config add config:debug:True
quick-create --name managed -s zlib
spack env deactivate
quick-create --dir unmanaged -s zlib
spack env deactivate
quick-create-dev --name develop -s nalu-wind@master
quick-create-dev --name develop -s [email protected]
6 changes: 5 additions & 1 deletion manager/manager_cmds/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
#
# This software is released under the BSD 3-clause license. See LICENSE file

import spack
import spack.extensions as ext


def location(verbose=False):
path = ext.path_for_extension("manager", paths=ext.get_extension_paths())
if spack.spack_version_info[0:3] < (0, 22, 0):
path = ext.path_for_extension("manager", *ext.get_extension_paths())
else:
path = ext.path_for_extension("manager", paths=ext.get_extension_paths())
if verbose:
print(path)
return path
Expand Down

0 comments on commit 034f0ff

Please sign in to comment.