rvr: Fix pulling to local directory.

My earlier attempt missed passing in the cmd-line-arg to the
code that actually used it.

And, add more useful printout to the CV test mgr to show what it
is pulling where.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-09-29 16:30:45 -07:00
parent 6846b2a119
commit 82b5d61de2
2 changed files with 22 additions and 2 deletions

View File

@@ -372,12 +372,13 @@ class cv_test(Realm):
self.lf_report_dir = location
if pull_report:
try:
print(lf_host)
print("Pulling report to directory: %s from %s@%s/%s" %
(local_lf_report_dir, lf_user, lf_host, location))
report.pull_reports(hostname=lf_host, username=lf_user, password=lf_password,
port=ssh_port, report_dir=local_lf_report_dir,
report_location=location)
except Exception as e:
print("SCP failed, user %s, password %s, dest %s", (lf_user, lf_password, lf_host))
print("SCP failed, user %s, password %s, dest %s" % (lf_user, lf_password, lf_host))
raise e # Exception("Could not find Reports")
break