Skip to content

rewrite check-open-once.sh in Rust - #16123

Open
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:open-once-rs
Open

oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:open-once-rs

Conversation

@oech3

@oech3 oech3 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

They should work with cargo test. #16404

@oech3

This comment was marked as outdated.

Comment thread tests/by-util/test_cp.rs Resolved
Comment thread tests/by-util/test_cp.rs Resolved
Comment thread tests/by-util/test_cp.rs Resolved
Comment thread tests/by-util/test_mv.rs Outdated
let (at, mut _ucmd) = at_and_ucmd!();
let file = "source_file";
at.touch(file);
if std::process::Command::new("strace")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

almost the same strace code 3 times, could you please move it into a helper?

@oech3 oech3 Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think that it is possible to make generic helper for strace. Diff is - even without the helper.

Comment thread tests/by-util/test_mv.rs Resolved
Comment thread tests/by-util/test_mv.rs Resolved
Comment thread tests/by-util/test_cp.rs Resolved
Comment thread tests/by-util/test_mv.rs Resolved
@oech3
oech3 force-pushed the open-once-rs branch 10 times, most recently from 531c548 to e97afd5 Compare November 30, 2026 06:27
@oech3
oech3 requested a review from sylvestre November 30, 2026 06:28
@oech3
oech3 force-pushed the open-once-rs branch 2 times, most recently from dca0105 to c297859 Compare December 1, 2026 05:29

This branch has not been deployed

No deployments
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.

2 participants