Skip to content

Commit 9b8b345

Browse files
committed
Fix CI: use absolute path for test case file
The mfc wrapper creates its own tmpdir, so relative paths don't work. Use absolute path to case.py so it can be found after mfc changes directories.
1 parent 73d1623 commit 9b8b345

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/homebrew.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ jobs:
147147
- name: Run MFC test case
148148
run: |
149149
echo "Running a simple test case (1D Sod shock tube)..."
150-
cd $(mktemp -d)
151-
cp $(brew --prefix mfc)/examples/1D_sodshocktube/case.py .
150+
TESTDIR=$(mktemp -d)
151+
cp $(brew --prefix mfc)/examples/1D_sodshocktube/case.py "$TESTDIR/"
152152
153153
echo "Running with $(sysctl -n hw.ncpu) processors..."
154-
mfc run case.py -j $(sysctl -n hw.ncpu)
154+
mfc run "$TESTDIR/case.py" -j $(sysctl -n hw.ncpu)
155155
156156
echo "Test case completed successfully!"
157157

0 commit comments

Comments
 (0)