upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 12:35:39 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 12:35:39 +0000
commit2ca475d4b16f05532eea044a244e7042a8dff068 (patch)
treee75cc4d1476135b190f43fde99ef0e21531b439d /test_utils
parentca2df272594a7b055c740ccda0b9c31b3b7e43cc (diff)
fix: suppress deprecation warnings for assert_cmd::cargo::cargo_bin
cargo_bin!() macro requires CARGO_BIN_EXE_ env vars set at compile time, which are only available in the crate that declares the binaries. Since test_utils is a library crate it cannot use the macro, so suppress the deprecation warning on the four functions that call cargo_bin().
Diffstat (limited to 'test_utils')
-rw-r--r--test_utils/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs
index 0f59539..ae0fa66 100644
--- a/test_utils/src/lib.rs
+++ b/test_utils/src/lib.rs
@@ -1087,6 +1087,7 @@ fn sanatize(s: String) -> String {
1087 .collect::<String>() 1087 .collect::<String>()
1088} 1088}
1089 1089
1090#[allow(deprecated)]
1090pub fn rexpect_with<I, S>(args: I, timeout_ms: u64) -> Result<PtySession, rexpect::error::Error> 1091pub fn rexpect_with<I, S>(args: I, timeout_ms: u64) -> Result<PtySession, rexpect::error::Error>
1091where 1092where
1092 I: IntoIterator<Item = S>, 1093 I: IntoIterator<Item = S>,
@@ -1106,6 +1107,7 @@ where
1106 ) 1107 )
1107} 1108}
1108 1109
1110#[allow(deprecated)]
1109pub fn rexpect_with_from_dir<I, S>( 1111pub fn rexpect_with_from_dir<I, S>(
1110 dir: &PathBuf, 1112 dir: &PathBuf,
1111 args: I, 1113 args: I,
@@ -1130,6 +1132,7 @@ where
1130 ) 1132 )
1131} 1133}
1132 1134
1135#[allow(deprecated)]
1133pub fn remote_helper_rexpect_with_from_dir( 1136pub fn remote_helper_rexpect_with_from_dir(
1134 dir: &PathBuf, 1137 dir: &PathBuf,
1135 nostr_remote_url: &str, 1138 nostr_remote_url: &str,
@@ -1151,6 +1154,7 @@ pub fn remote_helper_rexpect_with_from_dir(
1151 ) 1154 )
1152} 1155}
1153 1156
1157#[allow(deprecated)]
1154pub fn git_with_remote_helper_rexpect_with_from_dir<I, S>( 1158pub fn git_with_remote_helper_rexpect_with_from_dir<I, S>(
1155 dir: &PathBuf, 1159 dir: &PathBuf,
1156 args: I, 1160 args: I,