Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
renamed substrate -> cere
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Navoichyk committed Sep 29, 2022
1 parent d80ce63 commit 87f1f37
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Generic Substrate node implementation in Rust."
build = "build.rs"
edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
default-run = "substrate"
default-run = "cere"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"

Expand All @@ -25,7 +25,7 @@ is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
is-it-maintained-open-issues = { repository = "paritytech/substrate" }

[[bin]]
name = "substrate"
name = "cere"
path = "bin/main.rs"
required-features = ["cli"]

Expand Down
4 changes: 2 additions & 2 deletions bin/node/cli/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub async fn wait_n_finalized_blocks_from(n: usize, url: &str) {

/// Run the node for a while (3 blocks)
pub async fn run_node_for_a_while(base_path: &Path, args: &[&str]) {
let mut cmd = Command::new(cargo_bin("substrate"));
let mut cmd = Command::new(cargo_bin("cere"));

let mut child = KillChildOnDrop(cmd.args(args).arg("-d").arg(base_path).spawn().unwrap());

Expand All @@ -102,7 +102,7 @@ pub async fn run_node_for_a_while(base_path: &Path, args: &[&str]) {

/// Run the node asserting that it fails with an error
pub fn run_node_assert_fail(base_path: &Path, args: &[&str]) {
let mut cmd = Command::new(cargo_bin("substrate"));
let mut cmd = Command::new(cargo_bin("cere"));

let mut child = KillChildOnDrop(cmd.args(args).arg("-d").arg(base_path).spawn().unwrap());

Expand Down
4 changes: 2 additions & 2 deletions bin/node/cli/tests/running_the_node_and_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async fn running_the_node_works_and_can_be_interrupted() {
async fn run_command_and_kill(signal: Signal) {
let base_path = tempdir().expect("could not create a temp dir");
let mut cmd = common::KillChildOnDrop(
Command::new(cargo_bin("substrate"))
Command::new(cargo_bin("cere"))
.args(&["--dev", "-d"])
.arg(base_path.path())
.spawn()
Expand All @@ -63,7 +63,7 @@ async fn running_the_node_works_and_can_be_interrupted() {
#[tokio::test]
async fn running_two_nodes_with_the_same_ws_port_should_work() {
fn start_node() -> Child {
Command::new(cargo_bin("substrate"))
Command::new(cargo_bin("cere"))
.args(&["--dev", "--tmp", "--ws-port=45789"])
.spawn()
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/tests/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async fn telemetry_works() {
}
});

let mut substrate = process::Command::new(cargo_bin("substrate"));
let mut substrate = process::Command::new(cargo_bin("cere"));

let mut substrate = substrate
.args(&["--dev", "--tmp", "--telemetry-url"])
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/tests/temp_base_path_works.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub mod common;

#[tokio::test]
async fn temp_base_path_works() {
let mut cmd = Command::new(cargo_bin("substrate"));
let mut cmd = Command::new(cargo_bin("cere"));
let mut child = common::KillChildOnDrop(
cmd.args(&["--dev", "--tmp"])
.stdout(Stdio::piped())
Expand Down
2 changes: 1 addition & 1 deletion bin/node/cli/tests/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn expected_regex() -> Regex {
#[test]
fn version_is_full() {
let expected = expected_regex();
let output = Command::new(cargo_bin("substrate")).args(&["--version"]).output().unwrap();
let output = Command::new(cargo_bin("cere")).args(&["--version"]).output().unwrap();

assert!(output.status.success(), "command returned with non-success exit code");

Expand Down

0 comments on commit 87f1f37

Please sign in to comment.