diff --git a/scripts/subtests/unit-test b/scripts/subtests/unit-test index 1d50d7eea..59af0afcf 100755 --- a/scripts/subtests/unit-test +++ b/scripts/subtests/unit-test @@ -5,7 +5,11 @@ set -o pipefail SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +flags='-r --randomize-all --randomize-suites --fail-on-pending --keep-going --race --trace' +if [ "${CI:-false}" = 'true' ]; then + flags="${flags} -p" +fi pushd "${SCRIPT_DIR}/../../src" > /dev/null - go run github.com/onsi/ginkgo/v2/ginkgo -r -p --randomize-all --randomize-suites --fail-on-pending --keep-going --race --trace + go run github.com/onsi/ginkgo/v2/ginkgo $flags popd > /dev/null