Skip to content

Commit 3e50a8b

Browse files
committed
Harmonize with lint script
This avoids recompiling ginkgo every time
1 parent c8c2df6 commit 3e50a8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/subtests/unit-test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ if [ "${CI:-false}" = 'false' ]; then
1010
flags="${flags} -p"
1111
fi
1212
pushd "${SCRIPT_DIR}/../../src" > /dev/null
13-
go run github.com/onsi/ginkgo/v2/ginkgo $flags
14-
popd > /dev/null
15-
13+
if ! command -v ginkgo &> /dev/null; then
14+
go install github.com/onsi/ginkgo/v2/ginkgo@latest
15+
fi
16+
ginkgo $flags
17+
popd > /dev/null

0 commit comments

Comments
 (0)