github.com/operator-framework/operator-lifecycle-manager@v0.30.0/test/e2e/split/integration_test.sh (about) 1 #!/usr/bin/env bash 2 3 function get_total_specs() { 4 go run github.com/onsi/ginkgo/v2/ginkgo -noColor -dryRun -v -seed 1 "$@" ./test/e2e | grep -Po "Ran \K([0-9]+)(?= of .+ Specs in .+ seconds)" 5 } 6 7 unfocused_specs=$(get_total_specs) 8 regexp=$(go run ./test/e2e/split/... -chunks 1 -print-chunk 0 ./test/e2e) 9 focused_specs=$(get_total_specs -focus "$regexp") 10 11 if ! [ $unfocused_specs -eq $focused_specs ]; then 12 echo "expected number of unfocused specs $unfocused_specs to equal focus specs $focused_specs" 13 exit 1 14 fi