Add support for tracing in run_docker_compare.bash.

This commit is contained in:
Tom Alexander
2023-08-14 16:11:28 -04:00
parent ab17904b1c
commit 72b8fec1be
3 changed files with 14 additions and 6 deletions

View File

@@ -46,12 +46,11 @@ function launch_container {
set -euo pipefail
IFS=\$'\n\t'
export CARGO_TARGET_DIR=/target
cargo test --no-fail-fast --lib --test test_loader "$test" -- --show-output
EOF
)
docker run --rm -v "$($REALPATH ./):/source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target -w /source organic-test sh -c "$init_script"
docker run --rm -v "$($REALPATH ./):/source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target --env CARGO_TARGET_DIR=/target -w /source organic-test sh -c "$init_script"
}