~cprov/snappy/selftest-no-net

Viewing all changes in revision 26.

  • Committer: Martin Pitt
  • Date: 2015-02-27 15:34:36 UTC
  • Revision ID: martin.pitt@canonical.com-20150227153436-xp6fak027mdtze4o
Add framework for rebooting tests under autopkgtest

Add three new methods to framework:

 - can_reboot(): checking reboot capability (false if not run under
   autopkgtest, or on a testbed which doesn't offer reboot)

 - reboot(): Reboot testbed

 - after_reboot(): Tests need to call this at the beginning to check whether
   they are running before or after the requested reboot.

The test runner will make sure to resume a test which requested a reboot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: