Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtask: make testing cwd independent #247

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

gabriele-0201
Copy link
Contributor

@gabriele-0201 gabriele-0201 commented Feb 20, 2024

The only non-trivial thing in this PR should be how 'log_path' is specified in the CLI. I propose handling it in the following way: if 'log_path' is relative, it will be made absolute relative to the root project_path and not to where the command is actually called. Absolute paths would not been changed

closes #232

Copy link
Contributor Author

gabriele-0201 commented Feb 20, 2024

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@gabriele-0201 gabriele-0201 force-pushed the gab_xtask_cwd_independent branch from a5ad9ef to 5e0d41e Compare February 20, 2024 14:33
@gabriele-0201 gabriele-0201 marked this pull request as ready for review February 20, 2024 14:40
@pepyakin pepyakin merged commit 3efe13d into main Feb 20, 2024
6 checks passed
@pepyakin pepyakin deleted the gab_xtask_cwd_independent branch February 20, 2024 15:22
@pepyakin pepyakin restored the gab_xtask_cwd_independent branch February 20, 2024 15:22
@pepyakin
Copy link
Contributor

Merged the wrong PR, oops.

Copy link
Contributor

@pepyakin pepyakin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good anyway.

let _ = log_file
.write(format!("{}\n", description).as_bytes())
.map_err(|e| warn!("Error writing into {log_path}, error: {e}"));
.map_err(|e| warn!("Error writing into {log_path}, error: {e}",));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing ,
as well as below

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.

xtask/test: be cwd-independent
2 participants