diff --git a/components/tikv_alloc/src/lib.rs b/components/tikv_alloc/src/lib.rs index 8223c032e55..f97ca325e56 100644 --- a/components/tikv_alloc/src/lib.rs +++ b/components/tikv_alloc/src/lib.rs @@ -157,7 +157,7 @@ mod runner { let v = &name[idx + 7..]; if !v.is_empty() && !v.chars().any(|c| c.is_ascii_lowercase()) - && !std::env::var(v).is_ok() + && std::env::var(v).is_err() { desc.ignore = true; // TODO: uncomment this on a toolchain > 2022-02-25 diff --git a/scripts/test-all b/scripts/test-all index 5236a960b3c..3ee6dff285e 100755 --- a/scripts/test-all +++ b/scripts/test-all @@ -16,7 +16,7 @@ fi # Re-run tests that requires specific environment variables. if [[ "$(uname)" == "Linux" ]]; then export MALLOC_CONF=prof:true - ./scripts/test "$@" -- where_MALLOC_CONF --nocapture + ./scripts/test where_MALLOC_CONF "$@" -- --nocapture fi if [[ "$(uname)" = "Linux" ]]; then