Comment 5 for bug 1174626

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

With latest changes from antonio, following is how we use the job-output option in lava-tool:

$ sudo apt-get install python-pip #if pip is not already installed

$ sudo pip uninstall -v lava-tool -V 0.6

$ sudo pip uninstall -v lava-tool -V 0.7 #to cleanup previous installations

$ sudo pip install -v lava-tool #install latest lava-tool

$ lava-tool
usage: lava-tool [-h]
                 {job-output,help,auth-add,cancel-job,resubmit-job,submit-job}
                 ...
lava-tool: error: too few arguments

$ lava-tool job-output https://<email address hidden>/lava-server/RPC2/ 50000
ERROR: Username provided but no token found.

$ lava-tool auth-add https://<email address hidden>/lava-server/RPC2/
Paste token for https://<email address hidden>/lava-server/RPC2/:
Token added successfully for user stylesen.

$ lava-tool job-output https://<email address hidden>/lava-server/RPC2/ 50000
Downloaded job output of 50000 to file '50000_output.txt'

$ lava-tool job-output https://<email address hidden>/lava-server/RPC2/ 50000 -o new_job_output.txt
Downloaded job output of 50000 to file 'new_job_output.txt'

$ ls -alh 50000_output.txt new_job_output.txt
-rw-rw-r-- 1 stylesen stylesen 134K May 2 12:18 50000_output.txt
-rw-rw-r-- 1 stylesen stylesen 134K May 2 12:19 new_job_output.txt