mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
test/tools/vendor: drop ginkgo
It appears[1] that ginkgo binary can be easily built from the top-level vendor, so it does not make sense to have a second copy in test/tools (and a hassle of keeping the two in sync). Inspired by [1], [2], and a run of make localtest, which shows: > Ginkgo detected a version mismatch between the Ginkgo CLI and the version of Ginkgo imported by your packages: > Ginkgo CLI Version: > 2.22.1 > Mismatched package versions found: > 2.23.3 used by podman, common, containers, parse, quadlet, rootlessport, abi, tunnel, libpod, events, file, shm, logs, annotations, libpod, utils, apiutil, auth, ctime, abi, expansion, utils, emulation, env, errorhandling, machine, compression, connection, define, ocipull, provider, proxyenv, qemu, command, shim, vmconfigs, rootless, signal, specgen, generate, kube, specgenutil, systemd, generate, notifyproxy, parser, timetype, trust, util, utils [1]:af29bb5b6e (r2020246403)
[2]:e6c7ec94e2 (r2020230241)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -49,7 +49,7 @@ function Local-Unit {
|
||||
$skippackages="hack,internal\domain\infra\abi,internal\domain\infra\tunnel,libpod\lock\shm,pkg\api\handlers\libpod,pkg\api\handlers\utils,pkg\bindings,"
|
||||
$skippackages+="pkg\domain\infra\abi,pkg\emulation,pkg\machine\apple,pkg\machine\applehv,pkg\machine\e2e,pkg\machine\libkrun,"
|
||||
$skippackages+="pkg\machine\provider,pkg\machine\proxyenv,pkg\machine\qemu,pkg\specgen\generate,pkg\systemd,test\e2e,test\utils,cmd\rootlessport"
|
||||
Run-Command "./test/tools/build/ginkgo.exe -vv -r --tags `"$remotetags`" --timeout=15m --trace --no-color --skip-package `"$skippackages`""
|
||||
Run-Command "./bin/ginkgo.exe -vv -r --tags `"$remotetags`" --timeout=15m --trace --no-color --skip-package `"$skippackages`""
|
||||
}
|
||||
|
||||
function Local-Machine {
|
||||
@ -61,7 +61,7 @@ function Local-Machine {
|
||||
$files = " --focus-file $files "
|
||||
}
|
||||
|
||||
Run-Command "./test/tools/build/ginkgo.exe -vv --tags `"$remotetags`" --timeout=90m --trace --no-color $files pkg/machine/e2e/."
|
||||
Run-Command "./bin/ginkgo.exe -vv --tags `"$remotetags`" --timeout=90m --trace --no-color $files pkg/machine/e2e/."
|
||||
}
|
||||
|
||||
# Expect starting directory to be /podman
|
||||
@ -223,11 +223,11 @@ function Lint{
|
||||
|
||||
# Helpers
|
||||
function Build-Ginkgo{
|
||||
if (Test-Path -Path ./test/tools/build/ginkgo.exe -PathType Leaf) {
|
||||
if (Test-Path -Path ./bin/ginkgo.exe -PathType Leaf) {
|
||||
return
|
||||
}
|
||||
Write-Host "Building Ginkgo"
|
||||
Run-Command "go build -o ./test/tools/build/ginkgo.exe ./vendor/github.com/onsi/ginkgo/v2/ginkgo"
|
||||
Run-Command "go build -o ./bin/ginkgo.exe ./vendor/github.com/onsi/ginkgo/v2/ginkgo"
|
||||
}
|
||||
|
||||
function Git-Commit{
|
||||
|
Reference in New Issue
Block a user