~serge-hallyn/+junk/lxc-test

« back to all changes in this revision

Viewing changes to lxctest.py

  • Committer: Serge Hallyn
  • Date: 2012-06-26 15:21:51 UTC
  • Revision ID: serge.hallyn@canonical.com-20120626152151-tymvn6sfwazkdr10
fix automatic prereq setup

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
    cmd = ["sudo", "apt-get", "-y", "install", "lxc", "libvirt-bin", "make", "gcc"]
327
327
    ret = subprocess.call(cmd, stdout=None, stderr=None)
328
328
    if ret != 0:
329
 
        return ValueError, "Failed installing prerequisites"
 
329
        print "Failed installing prerequisites"
 
330
        sys.exit(1)
330
331
 
331
332
    # worry about what to do about other distros later
332
333
    dist=platform.dist()