This version of the patch series is revised based on the feedback from v6. Major changes since last version: * Patch 1 : Some of the unit tests are kept. * Patch 2 : Add more info to commit message and comment in the code. * Patch 3 : All tests are revised. * Patch 6 : untar_layers() call used in FileSource moved in this commit * Patch 7 : Handle case when Docker layers are not yet downloaded. * Patch 15 and 16: Tests are added in these commits. * Patch 17: All tests are revised. * Patch 26: Man page is expanded. Radostin Stoyanov (26): Drop unit tests Improve untar command Add regression tests untar: Use unique name with virt-sandbox get_mime_type: Properly close stdout handle DockerSource: Split checksum and layers Get layer size if not provided Make get_compression_type() reusable Make UID/GID mapping reusable Split the function mapping_uid_gid UID/GID mapping: Use empty list instead of None Make set_root_password_in_rootfs reusable Simplify setting permissins of shadow file Create qcow2 images with guestfs-python Enable UID/GID mapping for qcow2 Set root password with guestfs-python Add virt-builder source Add --version flag Improve readability of parser arguments Update helper message for source uri Use environment variable for temporary directory Define source code encoding Show warning for unprivileged users Update doc strings Use cache directory to store downloaded tar files Add man page for virt-bootstrap .gitignore | 1 + MANIFEST.in | 1 + man/virt-bootstrap.pod | 217 ++++++++ setup.py | 33 +- src/virtBootstrap/__init__.py | 211 +++++++- src/virtBootstrap/progress.py | 1 + src/virtBootstrap/sources/__init__.py | 36 +- src/virtBootstrap/sources/docker_source.py | 45 +- src/virtBootstrap/sources/file_source.py | 34 +- src/virtBootstrap/sources/virt_builder_source.py | 154 ++++++ src/virtBootstrap/utils.py | 486 +++++++++++++----- src/virtBootstrap/virt_bootstrap.py | 258 +++++----- tests/__init__.py | 479 +++++++++++++++++- tests/docker_source.py | 428 ++++++++++++++++ tests/file_source.py | 126 +++++ tests/test_docker_source.py | 607 ----------------------- tests/test_file_source.py | 171 ------- tests/test_progress.py | 112 ----- tests/test_utils.py | 580 +--------------------- tests/test_virt_bootstrap.py | 464 ----------------- tests/virt_builder_source.py | 243 +++++++++ 21 files changed, 2445 insertions(+), 2242 deletions(-) create mode 100644 man/virt-bootstrap.pod create mode 100644 src/virtBootstrap/sources/virt_builder_source.py create mode 100644 tests/docker_source.py create mode 100644 tests/file_source.py delete mode 100644 tests/test_docker_source.py delete mode 100644 tests/test_file_source.py delete mode 100644 tests/test_progress.py delete mode 100644 tests/test_virt_bootstrap.py create mode 100644 tests/virt_builder_source.py -- 2.13.5 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list