Skip to content

Commit e7373e6

Browse files
committed
Fix CI: use absolute path for case.py in mfc run test
The mfc wrapper creates its own temporary directory and changes into it, so relative paths like 'case.py' don't work. Use absolute path instead.
1 parent dd49604 commit e7373e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/homebrew.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ jobs:
151151
cp $(brew --prefix mfc)/examples/1D_sodshocktube/case.py "$TESTDIR/"
152152
153153
echo "Running with $(sysctl -n hw.ncpu) processors..."
154-
cd "$TESTDIR"
155-
mfc run case.py -j $(sysctl -n hw.ncpu)
154+
# Use absolute path since mfc wrapper creates its own tmpdir
155+
mfc run "$TESTDIR/case.py" -j $(sysctl -n hw.ncpu)
156156
157157
echo "Test case completed successfully!"
158158

0 commit comments

Comments
 (0)