tests/thirdparty: add skip option (#228)
Add the ability to skip third-party tests by specifying a known issue.
This commit is contained in:
committed by
GitHub
parent
6c0ed1c4e8
commit
2867bd7e01
3
tests/thirdparty/packages_test.go
vendored
3
tests/thirdparty/packages_test.go
vendored
@@ -35,6 +35,9 @@ func TestPackages(t *testing.T) {
|
||||
for _, pkg := range pkgs {
|
||||
pkg := pkg // scopelint
|
||||
t.Run(pkg.ID(), func(t *testing.T) {
|
||||
if pkg.Skip() {
|
||||
t.Skipf("skip: %s", pkg.Reason())
|
||||
}
|
||||
dir, clean := test.TempDir(t)
|
||||
if !*preserve {
|
||||
defer clean()
|
||||
|
||||
Reference in New Issue
Block a user