dockertest.dockercmd: Fix AsyncDockerCmd to log correctly

DockerCmdBase distinguish between executed and nonexecuted command
by checking self.executed. This variable is not incremented in
AsycnDockerCmd. This patch increments the self.executed in execute()

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.kill: Fix incorrect Output initialization

The Output class used length of the output instead of number of lines.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add logs_follow test

This test uses `docker logs --follow` and checks it works correctly.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add run_env test

this tests the ENV related features. Currently it only contains one
subsubtest, which is focused on linked containers. It sends data
using the addr from ENV to the server, which resends them back.

In the end it checks the valid data + ENV variables added via `-e x=y`
including the linked values ($linked_ENV_...)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.run_env: Add couple of env checks

Check another expected environments:
SERVER_NAME=/$client_name/server
SERVER_PORT=tcp://$addr:$port
SERVER_PORT_$port_TCP=tcp://$addr:$port
SERVER_PORT_$port_TCP_ADDR=$addr
SERVER_PORT_$port_TCP_PORT=$port
SERVER_PORT_$port_TCP_PROTO=tcp

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add run_attach test

This test checks different ``docker run -a xxx`` variants.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #285 from ldoktor/run_env

subtests.docker_cli: Add run_env test
Merge pull request #290 from ldoktor/logs_follow

subtests.docker_cli: Add logs_follow test
Merge branch 'build' of https://github.com/ldoktor/autotest-docker into ldoktor-build
subtests...build: Config. example build URIs

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'ldoktor-build'
Merge pull request #282 from ldoktor/run_attach

subtests.docker_cli: Add run_attach test
subtests.docker_cli: Update the structure to allow multiple builds

Update the structure to allow easily to call and verify multiple
builds. Also add couple of new checks and improve cleanup to delete
only non-previously-existing containers/images.

NOTE: It's impossible to cleanup based on the build log because it
doesn't list all used containers (only some of them)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.build: Add 2 new variants

Those variants test the --rm and --no-cache features.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>