~ubuntu-branches/ubuntu/wily/testdrive/wily-proposed

« back to all changes in this revision

Viewing changes to testdrive/virt/base.py

  • Committer: Package Import Robot
  • Author(s): Dustin Kirkland, Jackson Doak, Bryan Quigley
  • Date: 2014-02-03 15:35:26 UTC
  • Revision ID: package-import@ubuntu.com-20140203153526-ke3a48st1v38poaf
Tags: 3.27-0ubuntu1
[ Jackson Doak ]
* Bump default disk size to 8gb so we support ubuntu again

[ Bryan Quigley ]
* testdriverc, testdrive/testdrive.py:
  - add mouse cursor to kvm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
import os
 
3
 
 
4
 
 
5
class VirtException(Exception):
 
6
    pass
 
7
 
 
8
 
 
9
class VirtBase(object):
 
10
 
 
11
    def run(self, cmd):
 
12
        return(os.system(cmd))
 
13
 
 
14
    def run_or_die(self, cmd):
 
15
        if self.run(cmd) != 0:
 
16
            raise VirtException("Failed executing command: `%s`" % cmd)