Clean up run_docker_integration_test.bash

This commit is contained in:
Tom Alexander
2023-08-14 15:50:05 -04:00
parent 5768c8acda
commit 306878c95d
2 changed files with 41 additions and 13 deletions

View File

@@ -29,7 +29,6 @@ function launch_container {
set -euo pipefail
IFS=\$'\n\t'
cd /source
export CARGO_TARGET_DIR=/target
cargo run -- /input.org
EOF
@@ -40,7 +39,10 @@ EOF
else
additional_flags+=(-i -t)
fi
docker run "${additional_flags[@]}" --rm -v "${org_file}:/input.org:ro" -v "$($REALPATH ./):/source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target -w / organic-test "${additional_args[@]}"
# TODO: add support for reporting to jaeger with RUST_BACKTRACE=1 RUST_LOG=debug
docker run "${additional_flags[@]}" --rm -v "${org_file}:/input.org:ro" -v "$($REALPATH ./):/source:ro" --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target -w /source organic-test "${additional_args[@]}"
}
main "${@}"