From 26b105b47258d0efa8d42d283d2f76b33ea8357e Mon Sep 17 00:00:00 2001 From: guanqun <guanqun.lu@gmail.com> Date: Sat, 13 Oct 2018 21:16:17 +0800 Subject: [PATCH] fix the ignored tests in doc test (#898) * fix ignored test * move CI to --release per Gav --- substrate/ci/script.sh | 2 +- substrate/core/client/src/blockchain.rs | 4 ++-- substrate/core/executor/src/wasm_utils.rs | 2 +- substrate/srml/contract/src/vm/env_def/macros.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/substrate/ci/script.sh b/substrate/ci/script.sh index cc74d269d0b..0ab5f34fb25 100755 --- a/substrate/ci/script.sh +++ b/substrate/ci/script.sh @@ -20,7 +20,7 @@ case $TARGET in sudo apt-get -y update sudo apt-get install -y cmake pkg-config libssl-dev - cargo test --all --locked + cargo test --all --release --locked ;; "wasm") diff --git a/substrate/core/client/src/blockchain.rs b/substrate/core/client/src/blockchain.rs index 36bf3455a6d..ff2fa812592 100644 --- a/substrate/core/client/src/blockchain.rs +++ b/substrate/core/client/src/blockchain.rs @@ -121,7 +121,7 @@ pub struct RouteEntry<Block: BlockT> { /// The ancestry sets will include the given blocks, and thus the tree-route is /// never empty. /// -/// ```ignore +/// ```text /// Tree route from R1 to E2. Retracted is [R1, R2, R3], Common is C, enacted [E1, E2] /// <- R3 <- R2 <- R1 /// / @@ -129,7 +129,7 @@ pub struct RouteEntry<Block: BlockT> { /// \-> E1 -> E2 /// ``` /// -/// ```ignore +/// ```text /// Tree route from C to E2. Retracted empty. Common is C, enacted [E1, E2] /// C -> E1 -> E2 /// ``` diff --git a/substrate/core/executor/src/wasm_utils.rs b/substrate/core/executor/src/wasm_utils.rs index 42f9c3312d2..99af25cb164 100644 --- a/substrate/core/executor/src/wasm_utils.rs +++ b/substrate/core/executor/src/wasm_utils.rs @@ -107,7 +107,7 @@ macro_rules! unmarshall_args { /// Since we can't specify the type of closure directly at binding site: /// -/// ```rust,ignore +/// ```nocompile /// let f: FnOnce() -> Result<<u32 as ConvertibleToWasm>::NativeType, _> = || { /* ... */ }; /// ``` /// diff --git a/substrate/srml/contract/src/vm/env_def/macros.rs b/substrate/srml/contract/src/vm/env_def/macros.rs index d76b4fbd99c..16ba669dafa 100644 --- a/substrate/srml/contract/src/vm/env_def/macros.rs +++ b/substrate/srml/contract/src/vm/env_def/macros.rs @@ -68,7 +68,7 @@ macro_rules! unmarshall_then_body { /// Since we can't specify the type of closure directly at binding site: /// -/// ```rust,ignore +/// ```nocompile /// let f: FnOnce() -> Result<<u32 as ConvertibleToWasm>::NativeType, _> = || { /* ... */ }; /// ``` /// -- GitLab