diff options
author | Ahmet Alp Balkan <ahmetalpbalkan@gmail.com> | 2015-02-20 01:37:27 -0800 |
---|---|---|
committer | Ahmet Alp Balkan <ahmetb@microsoft.com> | 2015-02-20 09:51:10 -0800 |
commit | 492a58f05fe026653e27ed75d3ad4221f2e615b1 (patch) | |
tree | be83c69f1b1d454bedd01c124eaf5194d9310b7f /integration-cli/docker_cli_cp_test.go | |
parent | a78ce5c228b895d8c614d72354a52e324817b9fc (diff) | |
download | docker-492a58f05fe026653e27ed75d3ad4221f2e615b1.tar.gz |
integ-cli: Skip some unix-specific cli tests
Skipping some of the tests closely tied to running in a
unix environment. Windows does not support chmod/chown
and this causes some tests to fail creating desired
behavior.
- `TestBuildWithInaccessibleFilesInContext`: uses chown/chmod
- `TestBuildDockerfileOutsideContext`: uses os.Symlink, not implemented on
windows
- `TestCpUnprivilegedUser`: uses chmod, and requires 'unprivilegeduser'
created by Dockerfile (and thus requires to run inside container)
- `TestBuildChownSingleFile`: uses chown
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Diffstat (limited to 'integration-cli/docker_cli_cp_test.go')
-rw-r--r-- | integration-cli/docker_cli_cp_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/integration-cli/docker_cli_cp_test.go b/integration-cli/docker_cli_cp_test.go index 070b890257..2b88b62bf6 100644 --- a/integration-cli/docker_cli_cp_test.go +++ b/integration-cli/docker_cli_cp_test.go @@ -347,6 +347,8 @@ func TestCpSymlinkComponent(t *testing.T) { // Check that cp with unprivileged user doesn't return any error func TestCpUnprivilegedUser(t *testing.T) { + testRequires(t, UnixCli) // uses chmod/su: not available on windows + out, exitCode, err := dockerCmd(t, "run", "-d", "busybox", "/bin/sh", "-c", "touch "+cpTestName) if err != nil || exitCode != 0 { t.Fatal("failed to create a container", out, err) |