This is an automated email from the ASF dual-hosted git repository.

koushiro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal-oli.git


The following commit(s) were added to refs/heads/main by this push:
     new 71dfa05  chore(deps): bump assert_cmd from 2.0.17 to 2.1.1 (#15)
71dfa05 is described below

commit 71dfa0507182949d3708011de70af644d7c6efe8
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Thu Feb 5 15:28:42 2026 +0800

    chore(deps): bump assert_cmd from 2.0.17 to 2.1.1 (#15)
    
    * chore(deps): bump assert_cmd from 2.0.17 to 2.1.1
    
    Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 2.0.17 to 
2.1.1.
    - 
[Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
    - 
[Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.17...v2.1.1)
    
    ---
    updated-dependencies:
    - dependency-name: assert_cmd
      dependency-version: 2.1.1
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * fix clippy warnings
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: koushiro <[email protected]>
---
 Cargo.lock               | 11 ++---------
 Cargo.toml               |  2 +-
 tests/integration/tee.rs |  9 +++++----
 3 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 29f8beb..1ae0f9e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -89,13 +89,12 @@ checksum = 
"a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
 
 [[package]]
 name = "assert_cmd"
-version = "2.0.17"
+version = "2.1.1"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66"
+checksum = "bcbb6924530aa9e0432442af08bbcafdad182db80d2e560da42a6d442535bf85"
 dependencies = [
  "anstyle",
  "bstr",
- "doc-comment",
  "libc",
  "predicates",
  "predicates-core",
@@ -540,12 +539,6 @@ dependencies = [
  "const-random",
 ]
 
-[[package]]
-name = "doc-comment"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
-
 [[package]]
 name = "document-features"
 version = "0.2.12"
diff --git a/Cargo.toml b/Cargo.toml
index 392878f..7a6cdb2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -67,7 +67,7 @@ url = { version = "2.5" }
 uuid = { version = "1.17" }
 
 [dev-dependencies]
-assert_cmd = { version = "2.0" }
+assert_cmd = { version = "2.1" }
 comfy-table = "7"
 insta = { version = "1.43", features = ["filters"] }
 insta-cmd = { version = "0.6" }
diff --git a/tests/integration/tee.rs b/tests/integration/tee.rs
index dadb597..ed21ab8 100644
--- a/tests/integration/tee.rs
+++ b/tests/integration/tee.rs
@@ -17,6 +17,7 @@
 
 use crate::test_utils::*;
 use anyhow::Result;
+use assert_cmd::cargo_bin;
 use std::fs;
 use std::io::Write;
 use tempfile::TempDir;
@@ -97,7 +98,7 @@ fn test_tee_non_existing_file() -> Result<()> {
     let dst_path = temp_dir.path().join("non_existing_file.txt");
     let dst_path_str = dst_path.as_os_str().to_str().unwrap();
 
-    let mut cmd: assert_cmd::Command = 
std::process::Command::cargo_bin("oli")?.into();
+    let mut cmd: assert_cmd::Command = 
std::process::Command::new(cargo_bin!("oli")).into();
     cmd.args(["tee", dst_path_str]);
     cmd.write_stdin("Hello, world!");
     cmd.assert().success();
@@ -117,7 +118,7 @@ fn test_tee_append_succeed() -> Result<()> {
     // Initial content
     fs::write(&dst_path, "Hello, ")?;
 
-    let mut cmd: assert_cmd::Command = 
std::process::Command::cargo_bin("oli")?.into();
+    let mut cmd: assert_cmd::Command = 
std::process::Command::new(cargo_bin!("oli")).into();
     cmd.args(["tee", "-a", dst_path_str]);
     cmd.write_stdin("world!");
     cmd.assert().success();
@@ -134,7 +135,7 @@ fn test_tee_append_file_not_found() -> Result<()> {
     let file_path = temp_dir.path().join("test_append_not_found.txt");
     let file_path_str = file_path.to_str().unwrap();
 
-    let mut cmd: assert_cmd::Command = 
std::process::Command::cargo_bin("oli")?.into();
+    let mut cmd: assert_cmd::Command = 
std::process::Command::new(cargo_bin!("oli")).into();
     cmd.arg("tee")
         .arg("-a")
         .arg(file_path_str)
@@ -157,7 +158,7 @@ fn test_tee_overwrite_existing_file() -> Result<()> {
     // Create an existing file with some content
     fs::write(&file_path, "initial data")?;
 
-    let mut cmd: assert_cmd::Command = 
std::process::Command::cargo_bin("oli")?.into();
+    let mut cmd: assert_cmd::Command = 
std::process::Command::new(cargo_bin!("oli")).into();
     cmd.arg("tee").arg(file_path_str).write_stdin("new data");
     cmd.assert().success();
 

Reply via email to