Build constraints don't seem to work on test.

This commit is contained in:
Brad Ackerman 2020-08-09 14:12:58 -07:00
parent 94c9b87431
commit 109b2a0ca9
No known key found for this signature in database
GPG Key ID: 5C5E7A6B14E3D827
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,3 @@
//+build linux,freebsd
package chroot
import (
@ -16,6 +14,12 @@ import (
)
func TestStepMountDevice_Run(t *testing.T) {
switch runtime.GOOS {
case "linux", "freebsd":
break
default:
t.Skip("Unsupported operating system")
}
mountPath, err := ioutil.TempDir("", "stepmountdevicetest")
if err != nil {
t.Errorf("Unable to create a temporary directory: %q", err)