-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into doc-index-cards
- Loading branch information
Showing
8 changed files
with
34 additions
and
16 deletions.
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,3 @@ | ||
- Fix bug with `dune exec --watch` where the working directory would always be | ||
set to the project root rather than the directory where the command was run | ||
(#10262, @gridbugs) |
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
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
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/exec-watch/exec-pwd.t/bin/dune
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,2 @@ | ||
(executable | ||
(name main)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/exec-watch/exec-pwd.t/dune-project
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 @@ | ||
(lang dune 3.6) |
25 changes: 25 additions & 0 deletions
25
test/blackbox-tests/test-cases/exec-watch/exec-pwd.t/run.t
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,25 @@ | ||
$ export OUTPUT=output.txt | ||
|
||
In normal (non-watching) mode, pwd is the folder from which dune is launched | ||
$ cd bin | ||
$ dune exec --root .. -- pwd > $OUTPUT | ||
Entering directory '..' | ||
Leaving directory '..' | ||
$ cat $OUTPUT | ||
$TESTCASE_ROOT/bin | ||
$ rm -rf $OUTPUT | ||
$ cd .. | ||
|
||
In watch mode, pwd is also the folder from which dune is launched. | ||
$ cd bin | ||
$ dune exec --root .. -w -- pwd > $OUTPUT & | ||
Entering directory '..' | ||
Success, waiting for filesystem changes... | ||
Leaving directory '..' | ||
$ PID=$! | ||
$ until test -s $OUTPUT; do sleep 0.1; done; | ||
$ kill $PID | ||
$ cat $OUTPUT | ||
$TESTCASE_ROOT/bin | ||
$ rm -rf $OUTPUT | ||
$ cd .. |