diff --git a/radicle-cli-test/src/lib.rs b/radicle-cli-test/src/lib.rs index a1d71223..6c03e733 100644 --- a/radicle-cli-test/src/lib.rs +++ b/radicle-cli-test/src/lib.rs @@ -8,9 +8,6 @@ use snapbox::cmd::{Command, OutputAssert}; use snapbox::{Assert, Substitutions}; use thiserror::Error; -/// Error lines in the CLI are prefixed with this string. -const ERROR_PREFIX: &str = "✗"; - #[derive(Error, Debug)] pub enum Error { #[error("parsing failed")] @@ -160,9 +157,6 @@ impl TestFormula { }, }); } else if let Some(a) = test.assertions.last_mut() { - if line.starts_with(ERROR_PREFIX) { - a.exit = ExitStatus::Failure; - } a.expected.push_str(line.as_str()); a.expected.push('\n'); } else { diff --git a/radicle-cli/examples/rad-clone-unknown.md b/radicle-cli/examples/rad-clone-unknown.md index 13e2d98c..e74e891d 100644 --- a/radicle-cli/examples/rad-clone-unknown.md +++ b/radicle-cli/examples/rad-clone-unknown.md @@ -1,6 +1,6 @@ Trying to clone a repository that is not in our routing table returns an error: -``` +``` (fail) $ rad clone rad:zVNuptPuk5XauitpCWSNVCXGGfXW ✓ Tracking relationship established for rad:zVNuptPuk5XauitpCWSNVCXGGfXW ✗ Clone failed: no seeds found for rad:zVNuptPuk5XauitpCWSNVCXGGfXW diff --git a/radicle-cli/examples/rad-id-rebase.md b/radicle-cli/examples/rad-id-rebase.md index 4647d197..80530a37 100644 --- a/radicle-cli/examples/rad-id-rebase.md +++ b/radicle-cli/examples/rad-id-rebase.md @@ -237,7 +237,7 @@ Note that a warning was emitted: If we attempt to commit this revision, the command will fail: -``` +``` (fail) $ rad id commit 3f6ae4f8645c8b0cbcd35ea924df7b13aca52774 --no-confirm ! Warning: Revision is out of date ! Warning: d96f425412c9f8ad5d9a9a05c9831d0728e2338d =/= 475cdfbc8662853dd132ec564e4f5eb0f152dd7f diff --git a/radicle-cli/examples/rad-inspect-noauth.md b/radicle-cli/examples/rad-inspect-noauth.md index 327a1cb4..ab705687 100644 --- a/radicle-cli/examples/rad-inspect-noauth.md +++ b/radicle-cli/examples/rad-inspect-noauth.md @@ -1,6 +1,6 @@ The `rad inspect` command can be run without being authenticated with radicle: -``` +``` (fail) $ rad self ✗ Self failed: Could not load radicle profile ✗ Hint: To setup your radicle profile, run `rad auth`. diff --git a/radicle-cli/examples/rad-rm.md b/radicle-cli/examples/rad-rm.md index 661ac6c5..cb2891e3 100644 --- a/radicle-cli/examples/rad-rm.md +++ b/radicle-cli/examples/rad-rm.md @@ -23,7 +23,7 @@ $ rad ls Attempting to remove a repository that doesn't exist gives us an error message: -``` +``` (fail) $ rad rm rad:z2Jk1mNqyX7AjT4K83jJW9vQoHn4f ✗ Remove failed: repository rad:z2Jk1mNqyX7AjT4K83jJW9vQoHn4f was not found ``` diff --git a/radicle-cli/examples/rad-sync.md b/radicle-cli/examples/rad-sync.md index eaa85eb1..27329297 100644 --- a/radicle-cli/examples/rad-sync.md +++ b/radicle-cli/examples/rad-sync.md @@ -18,7 +18,7 @@ $ rad sync If we try to sync again after the nodes have synced, we will get a timeout after one second, since the nodes will not emit any message: -``` +``` (fail) $ rad sync --timeout 1 ✗ Syncing with 2 node(s).. ! Seed z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk timed out..