~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
..
block 23 10 years ago Scott Moser add stub files for commands 'extract', 'block-meta Diff
commands 7 10 years ago Scott Moser initial stub multi-command Diff
deps 196.1.2 9 years ago Scott Moser commit work in progress Diff
net 23 10 years ago Scott Moser add stub files for commands 'extract', 'block-meta Diff
reporter 162.1.1 9 years ago Newell Jensen Enabling curtin to be able to send back installati Diff
__init__.py 387.6.20 7 years ago Ryan Harper merge with trunk 1.5 KB Diff Download File
config.py 387.4.40 7 years ago Wesley Wiedenmeier Add 'None' and 'none' to false values in config.va 3.9 KB Diff Download File
futil.py 101 10 years ago Scott Moser decode_perms: fix error if permissions was not an 2.2 KB Diff Download File
gpg.py 444.1.2 7 years ago Ryan Harper Don't hardcode retries value in gpg module. 2.6 KB Diff Download File
log.py 239.1.21 8 years ago Scott Moser add a 'result' event type this is currently separ 2.2 KB Diff Download File
pack.py 321.1.1 8 years ago Scott Moser fix calling curtin --help The launcher was passin 7.4 KB Diff Download File
swap.py 236.1.2 8 years ago Scott Moser add fallback to dd the fallback path to dd makes 3.2 KB Diff Download File
udev.py 380.2.6 8 years ago Ryan Harper skip udevadm settle if required path already exist 2.3 KB Diff Download File
url_helper.py 335 8 years ago Scott Moser add running of pylint for python27 and python34 T 10.2 KB Diff Download File
util.py 446 7 years ago Scott Moser content decoding in load_file, apply_net raise exc 34.3 KB Diff Download File