Skip to content

Commit

Permalink
test: fix workspace patching test
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 17, 2024
1 parent 938a4c1 commit 98f5d4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ fn test_workspace_patching_passes() -> TestResult<()> {
.stdin(Stdio::null())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit());

let edit_child = edit_runner
.args(["edit", "toml_edit"])
.args(["rhack", "edit", "toml_edit"])
.current_dir(fixture_path.canonicalize()?)
.spawn()?;

let _edit_output = edit_child.wait_with_output()?;

// TODO: Test other conditions, e.g. if the directory has been created etc.
Expand All @@ -34,8 +36,9 @@ fn test_workspace_patching_passes() -> TestResult<()> {
.stdin(Stdio::null())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit());

let _undo_child = undo_runner
.args(["undo"])
.args(["rhack", "undo"])
.current_dir(fixture_path.canonicalize()?)
.spawn()?;

Expand Down

0 comments on commit 98f5d4b

Please sign in to comment.