Skip to content

Commit

Permalink
build-style/cargo: use configure_args in do_check.
Browse files Browse the repository at this point in the history
Cargo rebuilds the package if the command line arguments aren't the
same, which makes it test the wrong binary.
  • Loading branch information
ericonr authored and jnbr committed Jul 6, 2020
1 parent 5e57a93 commit 2be5dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/build-style/cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ do_build() {
do_check() {
: ${make_cmd:=cargo}

${make_cmd} test --release ${make_check_args}
${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
${make_check_args}
}

do_install() {
Expand Down

0 comments on commit 2be5dd6

Please sign in to comment.