-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix finding composer cache dir (#233)
- Loading branch information
1 parent
12e7194
commit c49029a
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
# So we don't find a composer.lock in current dir | ||
cd .. | ||
spawn ../bin/composer_paths.sh "" "fixtures/with-lock-file" | ||
match_max 100000 | ||
|
||
expect "::debug::Composer path is '*'\r | ||
::debug::Composer version *\r | ||
::debug::Composer cache directory found at '*composer*'\r | ||
::debug::File composer.json found at 'fixtures/with-lock-file/composer.json'\r | ||
::debug::File composer.lock path computed as 'fixtures/with-lock-file/composer.lock'\r | ||
" | ||
expect eof |