These tests are Linux-only, so we don't need the wrapper.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -17,7 +17,6 @@ import ( |
| 17 | 17 |
"github.com/docker/docker/integration/internal/container" |
| 18 | 18 |
net "github.com/docker/docker/integration/internal/network" |
| 19 | 19 |
"github.com/docker/docker/pkg/stdcopy" |
| 20 |
- "github.com/docker/docker/pkg/system" |
|
| 21 | 20 |
"github.com/docker/docker/testutil/daemon" |
| 22 | 21 |
"golang.org/x/sys/unix" |
| 23 | 22 |
"gotest.tools/v3/assert" |
| ... | ... |
@@ -155,7 +154,7 @@ func TestPrivilegedHostDevices(t *testing.T) {
|
| 155 | 155 |
) |
| 156 | 156 |
|
| 157 | 157 |
// Create Null devices. |
| 158 |
- if err := system.Mknod(devTest, unix.S_IFCHR|0o600, int(system.Mkdev(1, 3))); err != nil {
|
|
| 158 |
+ if err := unix.Mknod(devTest, unix.S_IFCHR|0o600, int(unix.Mkdev(1, 3))); err != nil {
|
|
| 159 | 159 |
t.Fatal(err) |
| 160 | 160 |
} |
| 161 | 161 |
defer os.Remove(devTest) |
| ... | ... |
@@ -163,7 +162,7 @@ func TestPrivilegedHostDevices(t *testing.T) {
|
| 163 | 163 |
t.Fatal(err) |
| 164 | 164 |
} |
| 165 | 165 |
defer os.RemoveAll(filepath.Dir(devRootOnlyTest)) |
| 166 |
- if err := system.Mknod(devRootOnlyTest, unix.S_IFCHR|0o600, int(system.Mkdev(1, 3))); err != nil {
|
|
| 166 |
+ if err := unix.Mknod(devRootOnlyTest, unix.S_IFCHR|0o600, int(unix.Mkdev(1, 3))); err != nil {
|
|
| 167 | 167 |
t.Fatal(err) |
| 168 | 168 |
} |
| 169 | 169 |
defer os.Remove(devRootOnlyTest) |