|
@@ -23,7 +23,6 @@ import (
|
|
|
|
|
|
// Test for error when SRC does not exist.
|
|
|
func (s *DockerSuite) TestCpToErrSrcNotExists(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{})
|
|
|
|
|
|
tmpDir := getTestDir(c, "test-cp-to-err-src-not-exists")
|
|
@@ -41,7 +40,6 @@ func (s *DockerSuite) TestCpToErrSrcNotExists(c *check.C) {
|
|
|
// Test for error when SRC ends in a trailing
|
|
|
// path separator but it exists as a file.
|
|
|
func (s *DockerSuite) TestCpToErrSrcNotDir(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{})
|
|
|
|
|
|
tmpDir := getTestDir(c, "test-cp-to-err-src-not-dir")
|
|
@@ -227,7 +225,6 @@ func (s *DockerSuite) TestCpToSymlinkDestination(c *check.C) {
|
|
|
// exist. This should create a file with the name DST and copy the
|
|
|
// contents of the source file into it.
|
|
|
func (s *DockerSuite) TestCpToCaseA(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{
|
|
|
workDir: "/root", command: makeCatFileCommand("itWorks.txt"),
|
|
|
})
|
|
@@ -249,7 +246,6 @@ func (s *DockerSuite) TestCpToCaseA(c *check.C) {
|
|
|
// exist. This should cause an error because the copy operation cannot
|
|
|
// create a directory when copying a single file.
|
|
|
func (s *DockerSuite) TestCpToCaseB(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{
|
|
|
command: makeCatFileCommand("testDir/file1"),
|
|
|
})
|
|
@@ -344,7 +340,6 @@ func (s *DockerSuite) TestCpToCaseD(c *check.C) {
|
|
|
// directory. Ensure this works whether DST has a trailing path separator or
|
|
|
// not.
|
|
|
func (s *DockerSuite) TestCpToCaseE(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{
|
|
|
command: makeCatFileCommand("/testDir/file1-1"),
|
|
|
})
|
|
@@ -449,7 +444,6 @@ func (s *DockerSuite) TestCpToCaseG(c *check.C) {
|
|
|
// directory (but not the directory itself) into the DST directory. Ensure
|
|
|
// this works whether DST has a trailing path separator or not.
|
|
|
func (s *DockerSuite) TestCpToCaseH(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux)
|
|
|
containerID := makeTestContainer(c, testContainerOptions{
|
|
|
command: makeCatFileCommand("/testDir/file1-1"),
|
|
|
})
|