subtests...cp: Convert to use sub-subtests

*  Added comment
*  Removed extended default timeout
*  Fixed string concatenation style
*  Use API method for container name generation

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli.save_load: Style cleanups and prep for another subtest

No actual changes, only couple of style cleanups and refactor.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests...cp: Add every_last sub-subtest

* Feed container some python to walk it's entire filesystem
  except certain directories and symlinks as configured.
  Pickle results back to sub-subtest via stdout.
* Use the docker cp command on every file from unpickled
  list, verify it was copied to the host.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli.save_load: Add stressed_load subsubtest

This subsubtest spawns multiple workers and simultaneously loads
multiple existing and new images.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest.dockercmd: More exception detail

Both NoFail and MustFail sub-classes provided very little
info. from exception in execute().  Added some overridable
static values with some simple default values.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...cp: Fix style/comments.

Instead of naked try...except, rely on NoFailDockerCmd to
provide any debugging details.  Clarify comment regarding
command-line fed code-generation via inspect module.

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli: Add ps_size test

This test executes couple of containers, creates file in each of them
and compares the size of the container with the size of the created file.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
dockertest: Mask unittest magic found by new pylint

Latest pylint run by Travis complains about
  Bad first argument 'FakeSubtestException' given to super()
As this is intended in unittest I masked it localy...

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

 subtests.docker_cli.save_load: Add stressed_load subsubtest
subtests...cp: Limit max files to be copied

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge branch 'ps_size' of https://github.com/ldoktor/autotest-docker
subtests.docker_cli: Update ps_size docs

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge pull request #289 from cevich/master

Small doc. fixup for #286
Merge pull request #281 from cevich/cp_anywhere

Add Docker cp anywhere
dockertest.containers: Support ICC links in names

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge pull request #288 from cevich/name_links

dockertest.containers: Support ICC links in names
run_pylint: Include pep8 checks if available

Signed-off-by: Chris Evich <cevich@redhat.com>
dockertest: small docstring & pep8 style cleanups

Signed-off-by: Chris Evich <cevich@redhat.com>
travis: Customized rules for pylint + pep8 checks

*  There's no need to pep8 check any unittests.
*  pylint ignore rules are different for unittests,
   dockertest modules, and test modules.
*  Pylint should only ignore TODO/FIXME warnings,
   all other warnings are just as good as errors.
*  It's handy to have the full path to each file
   being checked, since esp. test class names
   can and do clash.
*  Report total non-warning failures at end
   along with non-zero exit.

Signed-off-by: Chris Evich <cevich@redhat.com>
docker_cli/diff: Pylint/pep8 cleanups

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