Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ci/run_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ main() {
# can't find the file because of the ENV var
# shellcheck source=/dev/null
. "$crates_script"
for crate in "${CRATES[@]}"; do
for crate in $CRATES; do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A different way to do that would be to just load the output of that command into an array. However doing that just so you can have a space in crate directory is silly, so this is fine.

verbose_say "Found crate: $crate"
done
else
Expand Down Expand Up @@ -111,7 +111,7 @@ main() {

# Build and test for each crate, done with each toolchain.
build_and_test() {
for crate in "${CRATES[@]}"; do
for crate in $CRATES; do
local test_vars_script="$REPO_DIR/$crate/contrib/test_vars.sh"

# Clean variables and also make sure they are defined.
Expand Down Expand Up @@ -287,7 +287,7 @@ build_docs_with_stable_toolchain() {
do_bench() {
verbose_say "Running bench tests for: $CRATES"

for crate in "${CRATES[@]}"; do
for crate in $CRATES; do
pushd "$REPO_DIR/$crate" > /dev/null
# Unit tests are ignored so if there are no bench test then this will just succeed.
RUSTFLAGS='--cfg=bench' cargo bench
Expand Down