diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index cc497f18f..389f460ef 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -539,6 +539,7 @@ cmd_tests() { --volume "$CLH_INTEGRATION_WORKLOADS:$CTR_CLH_INTEGRATION_WORKLOADS" \ --env USER="root" \ --env CH_LIBC="${libc}" \ + --env RUST_BACKTRACE="${RUST_BACKTRACE}" \ "$CTR_IMAGE" \ ./scripts/run_metrics.sh "$@" || fix_dir_perms $? || exit $? fi diff --git a/scripts/run_metrics.sh b/scripts/run_metrics.sh index 9e4de9e1b..ea39c2b48 100755 --- a/scripts/run_metrics.sh +++ b/scripts/run_metrics.sh @@ -107,7 +107,12 @@ fi # Ensure that git commands can be run in this directory (for metrics report) git config --global --add safe.directory $PWD -export RUST_BACKTRACE=1 +RUST_BACKTRACE_VALUE=`echo $RUST_BACKTRACE` +if [ -z $RUST_BACKTRACE_VALUE ];then + export RUST_BACKTRACE=1 +else + echo "RUST_BACKTRACE is set to: $RUST_BACKTRACE_VALUE" +fi time target/$BUILD_TARGET/release/performance-metrics ${test_binary_args[*]} RES=$?