Clean up run_docker_integration_test.bash
This commit is contained in:
@@ -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 "${@}"
|
||||
|
||||
Reference in New Issue
Block a user