--- /dev/null
+ o Major bugfixes (rust, testing):
+ - Fix a bug where a failure in the rust unit tests would not actually
+ cause the build to fail. Fixes bug 26258; bugfix on 0.3.3.4-alpha.
+
set -e
-CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" \
+
+for cargo_toml in "${abs_top_srcdir:-../../..}"/src/rust/*/Cargo.toml; do
+ CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" \
CARGO_HOME="${abs_top_builddir:-../../..}/src/rust" \
- find "${abs_top_srcdir:-../../..}/src/rust" \
- -mindepth 2 -maxdepth 2 \
- -type f -name 'Cargo.toml' \
- -exec "${CARGO:-cargo}" test --all-features ${CARGO_ONLINE-"--frozen"} \
- --manifest-path '{}' \;
+ "${CARGO:-cargo}" test --all-features ${CARGO_ONLINE-"--frozen"} \
+ --manifest-path "$cargo_toml" || exitcode=1
+done
+
+exit $exitcode
-exit $?