You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): set command CWD in empty_input CLI tests
The `test_cli_markdown_file_no_actions` and `test_cli_empty_markdown_file`
integration tests were failing on the Ubuntu CI runner. The error indicated
that the default output directory (`./project-generated`) could not be
created due to "No such file or directory".
This occurred because the tests did not explicitly set the Current Working
Directory (CWD) for the spawned `strux` command. The command inherited the
CWD from the test runner environment, which was problematic on the Ubuntu
runner, preventing relative directory creation.
This commit fixes the issue by adding `cmd.current_dir(temp_dir.path())`
to both tests in `tests/cli/empty_input.rs`. This ensures the `strux`
command executes with its CWD set to the temporary directory created by
`assert_fs`, providing a reliable and writable location for filesystem
operations and resolving the CI failures.
0 commit comments