~milo/lava-tool/lava-165

« back to all changes in this revision

Viewing changes to lava/commands.py

  • Committer: Milo Casagrande
  • Date: 2013-07-25 10:19:10 UTC
  • Revision ID: milo@ubuntu.com-20130725101910-3bs6wbmv5y5nbi8m
Refactored testdef init, refactored utils functions, fixed tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
)
70
70
from lava.tool.errors import CommandError
71
71
 
 
72
from lava_tool.utils import (
 
73
    retrieve_file,
 
74
)
 
75
 
72
76
# Default directory structure name.
73
77
TESTS_DIR = "tests"
74
78
 
205
209
 
206
210
    def invoke(self):
207
211
        full_path = os.path.abspath(self.args.JOB)
208
 
        job_file = self.retrieve_file(full_path, JOB_FILE_EXTENSIONS)
 
212
        job_file = retrieve_file(full_path, JOB_FILE_EXTENSIONS)
209
213
 
210
214
        self._run_job(job_file)
211
215