requiresbuild.go 335 B

12345678910111213141516171819
  1. package testutilities
  2. import (
  3. "testing"
  4. "github.com/Microsoft/hcsshim/osversion"
  5. )
  6. func RequiresBuild(t *testing.T, b uint16) {
  7. if osversion.Get().Build < b {
  8. t.Skipf("Requires build %d+", b)
  9. }
  10. }
  11. func RequiresExactBuild(t *testing.T, b uint16) {
  12. if osversion.Get().Build != b {
  13. t.Skipf("Requires exact build %d", b)
  14. }
  15. }