github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/state/stateenvirons/package_test.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package stateenvirons_test 5 6 import ( 7 "testing" 8 9 "github.com/juju/os" 10 11 coretesting "github.com/juju/juju/testing" 12 ) 13 14 func TestPackage(t *testing.T) { 15 // At this stage, Juju only supports running the apiservers and database 16 // on Ubuntu. If we end up officially supporting CentOS, then we should 17 // make sure we run the tests there. 18 if os.HostOS() != os.Ubuntu { 19 t.Skipf("skipping tests on %v", os.HostOS()) 20 } 21 coretesting.MgoTestPackage(t) 22 }