mirror of
https://github.com/rancher/plugins.git
synced 2025-07-08 20:53:53 +00:00
20 lines
335 B
Go
20 lines
335 B
Go
package testutilities
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/Microsoft/hcsshim/osversion"
|
|
)
|
|
|
|
func RequiresBuild(t *testing.T, b uint16) {
|
|
if osversion.Get().Build < b {
|
|
t.Skipf("Requires build %d+", b)
|
|
}
|
|
}
|
|
|
|
func RequiresExactBuild(t *testing.T, b uint16) {
|
|
if osversion.Get().Build != b {
|
|
t.Skipf("Requires exact build %d", b)
|
|
}
|
|
}
|