From b35d785e73d463d3415983535e8152839fc8c41b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 28 Aug 2023 01:18:10 -0400 Subject: [PATCH] Fix tracing in the run_docker_compare.bash script. --- scripts/run_docker_compare.bash | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/run_docker_compare.bash b/scripts/run_docker_compare.bash index 7e56e8f5..5a785c17 100755 --- a/scripts/run_docker_compare.bash +++ b/scripts/run_docker_compare.bash @@ -26,20 +26,24 @@ function build_container { function launch_container { local additional_flags=() local additional_args=() + local features=(compare) if [ "$NO_COLOR" != "" ]; then additional_flags+=(--env "NO_COLOR=$NO_COLOR") fi - if [ "$SHELL" != "YES" ]; then - additional_args+=(cargo run) - else - additional_flags+=(-t) - fi - if [ "$TRACE" = "YES" ]; then # We use the host network so it can talk to jaeger hosted at 127.0.0.1 additional_flags+=(--network=host --env RUST_LOG=debug) + features+=(tracing) + fi + + if [ "$SHELL" != "YES" ]; then + local features_joined=$(IFS=","; echo "${features[*]}") + additional_args+=(cargo run --no-default-features --features "$features_joined") + else + additional_args+=(/bin/sh) + additional_flags+=(-t) fi if [ "$BACKTRACE" = "YES" ]; then