Skip to content

Commit

Permalink
Sort find results to ensure consistent order (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode authored Aug 16, 2023
1 parent c01a4b3 commit dceb73d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function serverless_operator_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)

kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

Expand All @@ -102,7 +102,7 @@ function serverless_operator_kafka_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)
kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

RUN_FLAGS=(-failfast -timeout=30m -parallel=1)
Expand All @@ -127,7 +127,7 @@ function downstream_serving_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)
kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

RUN_FLAGS=(-failfast -timeout=60m -parallel=1)
Expand Down Expand Up @@ -162,7 +162,7 @@ function downstream_eventing_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)
kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

# Used by eventing/test/lib
Expand Down Expand Up @@ -233,7 +233,7 @@ function downstream_knative_kafka_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)
kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

# Used by eventing/test/lib
Expand Down Expand Up @@ -308,7 +308,7 @@ function downstream_monitoring_e2e_tests {
kubeconfigs+=("${KUBECONFIG}")
while IFS= read -r -d '' cfg; do
kubeconfigs+=("${cfg}")
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0)
done < <(find "$(pwd -P)" -name 'user*.kubeconfig' -print0 | sort -z)
kubeconfigs_str="$(array.join , "${kubeconfigs[@]}")"

RUN_FLAGS=(-failfast -timeout=30m -parallel=1)
Expand Down

0 comments on commit dceb73d

Please sign in to comment.