Merge pull request #70259 from andir/rust-checkflags

rust introduce `checkFlags` to parametrize test execution
This commit is contained in:
Andreas Rammhold
2019-10-21 17:33:10 +02:00
committed by GitHub
2 changed files with 9 additions and 7 deletions

View File

@@ -149,8 +149,8 @@ stdenv.mkDerivation (args // {
checkPhase = args.checkPhase or ''
runHook preCheck
echo "Running cargo test"
cargo test
echo "Running cargo cargo test -- ''${checkFlags} ''${checkFlagsArray+''${checkFlagsArray[@]}}"
cargo test -- ''${checkFlags} ''${checkFlagsArray+"''${checkFlagsArray[@]}"}
runHook postCheck
'';