dockertest.environment: PEP8/pylint fixes

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.environment: Add set_selinux_context and use it for volumes

Docker --volumes requires 'svirt_sandbox_file_t' context. This patch
adds function set_selinux_context and uses it everywhere we create
shared directories with container.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.containers: Check JSON result better

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...run_volumes: Cleanup sub-subtests

* Add better handling of cid
* Fix log messages with kill/remove
* Remove testing paths from default configuration
* Fix cleanup to actually remove containers

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'volumes' of https://github.com/ldoktor/autotest-docker into containers_verbose

Conflicts:
	subtests/docker_cli/run_volumes/run_volumes.py
	subtests/docker_cli/run_volumes/volumes_one_source.py
Merge pull request #142 from cevich/volumes_selinux

Volumes selinux
dockertest: Adds after traceback new line char to improve readability.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Update in pull request #98
Fix Traceback issue
dockertest: Adds get_as_list function to config.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
added fixes for 1092781

Signed-off-by: James Molet <jmolet@redhat.com>
Merge pull request #148 from Lorquas/inspect

added fixes for 1092781
Merge branch 'config_fix_traceback' of https://github.com/jzupka/autotest-docker
dockertest.config: get_as_list fix + unittest

*  ``sep`` parameter never referenced
*  Strip entire value also before splitting
*  String-convert all value
*  Added unittest

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'run_memory' of https://github.com/luwensu/autotest-docker
subtests...run_memory + docs cleanup.

*  Make run_memory test fail for ``-m 0`` if cgroups value
   does not exactly match.

*  Minor docs cleanup, fix spelling errors everywhere.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...various: Pylint fixes- comma w/o space

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...run_volumes: SELinux improvements

*  Clarified config. file comments
*  Updated documentation
*  Added additional checks for path lists
*  Made common method for changing contexts
   for all sub-subtsts.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests: Remove unused imports

Signed-off-by: Chris Evich <cevich@redhat.com>
Dockertest Version 0.7.3 (No API Changes)

Signed-off-by: Chris Evich <cevich@redhat.com>