~pwlars/lava-test/hwprofile

« back to all changes in this revision

Viewing changes to abrek/testdef.py

  • Committer: Alexandros Frantzis
  • Date: 2010-07-14 09:50:53 UTC
  • Revision ID: alf82@freemail.gr-20100714095053-k60ehskfuzpmtl1d
Fix creation of command string for dependency installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    def _installdeps(self):
117
117
        if not self.deps:
118
118
            return 0
119
 
        cmd = "sudo apt-get install %s", " ".join(self.deps)
 
119
        cmd = "sudo apt-get install %s" % " ".join(self.deps)
120
120
        rc, output = getstatusoutput(cmd)
121
121
        if rc:
122
122
            raise RuntimeError("Dependency installation failed")