~zyga/snapcraft/fix-silent-run-failure

Viewing all changes in revision 137.

  • Committer: Zygmunt Krynicki
  • Date: 2015-08-26 09:02:28 UTC
  • Revision ID: zygmunt.krynicki@canonical.com-20150826090228-sf9sx90md0baw0vp
Fix silent failure of snapcraft run

This patch changes each subprocess.call() made by the implementation of
``snapcraft run`` to .check_call(). This way when the user runs
``snapcraft run`` and something fails (as it can in numerous ways right
now) the error will be immediate and clearly visible. Right now the
actual error manifests itself by lack of the expected .snap in the
started virtual machine combined with a series of error messages
intermixed with cloud-init and other vm startup tasks, which is very
hard to find.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: