Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgeorge4153 committed Jan 15, 2025
1 parent 8aa065b commit 8f7ebdc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions crates/sui-move/tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fn test_shell_snapshot(path: &Path) -> datatest_stable::Result<()> {
}
}

// set up path
// Note: we need to create a symlink instead of just adding the bin dir to the path to prevent
// local pathnames from leaking into the snapshot files.
std::os::unix::fs::symlink(
Expand All @@ -48,8 +49,6 @@ fn test_shell_snapshot(path: &Path) -> datatest_stable::Result<()> {
.current_dir(sandbox)
.arg(path.file_name().unwrap());

println!("{shell:?}");

// run it!
let snapshot_name: String = path
.strip_prefix("tests/tests")?
Expand All @@ -61,14 +60,4 @@ fn test_shell_snapshot(path: &Path) -> datatest_stable::Result<()> {
Ok(())
}

/// The parent directory of the `sui-move` binary
fn cargo_bin_path() -> String {
insta_cmd::get_cargo_bin("sui-move")
.parent()
.unwrap()
.to_str()
.unwrap()
.to_string()
}

datatest_stable::harness!(test_shell_snapshot, TEST_DIR, TEST_PATTERN);

0 comments on commit 8f7ebdc

Please sign in to comment.