mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
ci-automation: Do not rerun tests on unrelated instances
We forgot to clear the array with instance tests to rerun, so the list grew from one iteration to another when going over all the instance types. I did not spot it before, because I tested it with only one extra instance.
This commit is contained in:
parent
42fd4919c4
commit
bf1bc21498
@ -155,6 +155,9 @@ function filter_prefixed_tests() {
|
||||
local -n results="${var_name}"
|
||||
local name
|
||||
local stripped_name
|
||||
# clear the array, so it will contain results of current filtering
|
||||
# only
|
||||
results=()
|
||||
for name; do
|
||||
stripped_name="${name#extra-test.\[${prefix}\].}"
|
||||
if [[ "${stripped_name}" != "${name}" ]]; then
|
||||
@ -181,6 +184,9 @@ function filter_out_prefixed_tests() {
|
||||
local var_name="${1}"; shift
|
||||
local -n results="${var_name}"
|
||||
local name
|
||||
# clear the array, so it will contain results of current filtering
|
||||
# only
|
||||
results=()
|
||||
for name; do
|
||||
if [[ "${name#extra-test.}" = "${name}" ]]; then
|
||||
results+=( "${name}" )
|
||||
|
Loading…
Reference in New Issue
Block a user