Skip to content

Commit 1ad9e5e

Browse files
committed
add ||true so it runs all packages, not just the first one found
1 parent 8dd44ec commit 1ad9e5e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

contrib/tools/local-mutation-testing.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ run_mutants() {
5656

5757
if [ ! -f "$mutant_file" ]; then
5858
echo "No mutants found for $package"
59-
return
59+
return 0
6060
fi
6161

6262
local regex_pattern=$(sed 's/[][()\.^$*+?{}|]/\\&/g' "$mutant_file" | paste -sd'|' -)
@@ -70,15 +70,17 @@ run_mutants() {
7070
--output "$output_dir" \
7171
--test-tool=nextest \
7272
--package "$package" \
73-
-- --all-targets --test-threads 1
73+
-- --all-targets --test-threads 1 || true
7474

7575
echo $? > "${output_dir}/exit_code.txt"
7676
else
7777
echo "Skipping $package, only $mutant_count mutants (threshold: $threshold)"
7878
fi
79+
80+
return 0
7981
}
8082

8183
# Run mutants for each wanted package
82-
run_mutants "stacks-signer" 500 "./stacks-signer_mutants"
83-
run_mutants "stacks-node" 540 "./stacks-node_mutants"
84-
run_mutants "stackslib" 72 "./stackslib_mutants"
84+
run_mutants "stacks-signer" 500 "./stacks-signer_mutants" || true
85+
run_mutants "stacks-node" 540 "./stacks-node_mutants" || true
86+
run_mutants "stackslib" 72 "./stackslib_mutants" || true

0 commit comments

Comments
 (0)