Skip to content

test: Don't depend on the current directory - #24

Merged
kou merged 1 commit into
enactic:mainfrom
kou:test-any-directory
Nov 16, 2026
Merged

kou merged 1 commit into
enactic:mainfrom
kou:test-any-directory

Conversation

@kou

@kou kou commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

unilateral_control and bilateral_control load config/*.yaml from the current directory. So the tests worked only when pytest was run in the top source directory. ctest did it by WORKING_DIRECTORY, but running pytest directly in other directories failed.

Run the executables in the top source directory by the tests themselves instead.

`unilateral_control` and `bilateral_control` load `config/*.yaml` from
the current directory. So the tests worked only when pytest was run in
the top source directory. `ctest` did it by `WORKING_DIRECTORY`, but
running pytest directly in other directories failed.

Run the executables in the top source directory by the tests
themselves instead.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kou
kou merged commit 3b7c258 into enactic:main Nov 16, 2026
2 checks passed
@kou
kou deleted the test-any-directory branch November 16, 2026 06:17
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.

1 participant