~raharper/curtin/trunk.simple-bridge

  • Committer: Scott Moser
  • Author(s): Ryan Harper
  • Date: 2017-02-06 20:22:00 UTC
  • mfrom: (432.2.15 trunk.lp1635560)
  • Revision ID: smoser@ubuntu.com-20170206202200-qqfmooorwxo7ed0a
content decoding in load_file, apply_net raise exception on errors

This patch series fixes two issues. First, subcommands of the apply_net
command were exiting non-zero but we failed to raise and exception
which let curtin hide an error. We've modified apply_net to re-raise
the exception when it occurs. Additionally update vmtest to look for
stack-traces in the installation log and mark a test failed if it
detects one; this should prevent future cases from re-occurring.

The second error is when loading a file with and encoding, load_file
did not handle this case. Merge in a version of load_file from
cloud-init which already handles this case. Introduce new
unittests to validate the function as it touches some block related
code where we read partition data directly.

Finally, the mock_open feature of unittest.mock only supports
binary data in version 2.0.0 or newer, so skip this unittest on
systems without a new-enough mock; note this does not affect
the function of the code on the same release, only the unittest.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 7 10 years ago Scott Moser initial stub multi-command Diff
curtin 7 10 years ago Scott Moser initial stub multi-command Diff
debian 9 10 years ago Scott Moser add initial packaging Diff
doc 2 10 years ago Scott Moser very rough initial doc using sphynx. Diff
examples 45 10 years ago Scott Moser add examples dir Diff
helpers 25 10 years ago Scott Moser block-meta simple now partitions with 'partition' Diff
tests 8 10 years ago Scott Moser make test (with 1 test) Diff
tools 8 10 years ago Scott Moser make test (with 1 test) Diff
.bzrignore 368 8 years ago Ryan Harper Enable python coverage for unittests make check 33 bytes Diff Download File
LICENSE 6 10 years ago Scott Moser add LICENSE file 33.7 KB Diff Download File
Makefile 387.6.20 7 years ago Ryan Harper merge with trunk 1.2 KB Diff Download File
README 1 10 years ago Scott Moser initial README 163 bytes Diff Download File
requirements.txt 380.4.1 8 years ago Scott Moser fix dependencies This fixes up dependencies to be 16 bytes Diff Download File
setup.py 387.6.4 7 years ago Ryan Harper Move curtin VERSION into module; use in setup.py, 775 bytes Diff Download File
test-requirements.txt 368 8 years ago Ryan Harper Enable python coverage for unittests make check 28 bytes Diff Download File
tox.ini 423.2.3 7 years ago Scott Moser might as well test trusty-py3 as the build will ru 2.6 KB Diff Download File