Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Aug 22, 2025

This fixes the issue observed in #12250. The issue was that source paths were not being adjusted correctly with respect to the current working directory.

The first commit adds a test demonstrating the issue, which was introduced in 971584f.

The second commit adds a fix which adjusts the source path accordingly.

  • changelog

@Alizter Alizter force-pushed the runtest-subdir-regresion branch 2 times, most recently from 2242029 to 14092e0 Compare August 22, 2025 00:43
When we interpret source paths we need to make sure they have been
adjusted with respect to the current working directory.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter Alizter force-pushed the runtest-subdir-regresion branch from 14092e0 to 2b64734 Compare August 23, 2025 11:18
@Alizter Alizter merged commit e2f0596 into ocaml:main Aug 23, 2025
10 of 11 checks passed
@Alizter Alizter deleted the runtest-subdir-regresion branch August 23, 2025 11:25
maiste added a commit that referenced this pull request Aug 25, 2025
* test: dune runtest in subdirectory
* fix(runtest): path interpretation in subdirectory

Co-authored-by: Ali Caglayan <[email protected]>
maiste added a commit to maiste/opam-repository that referenced this pull request Aug 25, 2025
CHANGES:

### Fixed

- Fix `runtest-js` mistakenly depending on `byte` (fixes ocaml/dune#12243, ocaml/dune#12242,
  @vouillon and @Alizter)

- Fix the interpretation of paths in `dune runtest` when running from within a
  subdirectory. (ocaml/dune#12251, fixes ocaml/dune#12250, @Alizter)

### Changed

- Revert formatting change introduced in 3.20.0 making long lists in
  s-expressions fill the line instead of formatting them in a vertical way
  (ocaml/dune#12245, reverts ocaml/dune#10892, @nojb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtest now changes directories to dune project root

2 participants