~kissiel/checkbox/error-reporting

Viewing all changes in revision 2973.1.2.

  • Committer: Daniel Manrique
  • Date: 2014-05-05 17:32:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2974.
  • Revision ID: roadmr@ubuntu.com-20140505173221-2yze5mtgonh8h0ii
test-in-vagrant: Use per-component mini-scripts for testing.

This updates test-in-vagrant to look for, and use, the
previously-converted mini-scripts for testing each component.

This reduces duplication significantly and paves the way for running the
per-component tests under VM/container systems other than Vagrant, as
it'll be easier to rewrite the "run loop" once and just adapt the
startup, provisioning and shutdown parts for each container system.

Also, the test running line was updated to run commands on the vm in
$HOME.

Instead of assuming ssh into the virtual machine places me into my home
directory, explicitly reference $HOME in the commands, to make this an
absolute path. This still works because the $HOME parameter is expanded
once we are *inside* the VM so things will reference the correct
location, while being more compatible with what test-in-lxc (which will
expand $HOME to the invoking user's home, rather than that of the
container's user) will do.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: