aboutsummaryrefslogtreecommitdiff
path: root/lnt/util/ImportData.py
diff options
context:
space:
mode:
authorChris Matthews <cmatthews5@apple.com>2015-05-01 18:48:05 +0000
committerChris Matthews <cmatthews5@apple.com>2015-05-01 18:48:05 +0000
commitdbb51a20c75fbce668ebd12f0af1c43d54d5f037 (patch)
tree1484dca50b592a06836fa4b85632115371f88641 /lnt/util/ImportData.py
parentc8b0fa0a576d4c99d730347070821e5d60bf8320 (diff)
print a handy link to the results after LNT submits
It is really handy to be able to go right to a run result from the console. Have the server prepare a link and print it on finish. git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@236331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lnt/util/ImportData.py')
-rw-r--r--lnt/util/ImportData.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lnt/util/ImportData.py b/lnt/util/ImportData.py
index fb87889..5a93844 100644
--- a/lnt/util/ImportData.py
+++ b/lnt/util/ImportData.py
@@ -92,7 +92,11 @@ def import_and_report(config, db_name, db, file, format, commit=False,
if config:
report_url = "%s/db_%s/" % (config.zorgURL, db_name)
else:
- report_url = 'localhost'
+ report_url = "localhost"
+ # Add a handy relative link to the submitted run.
+ ts_name = data['Run']['Info'].get('tag')
+ result['result_url'] = "db_{}/v4/{}/{}".format(db_name, ts_name, run.id)
+
if not disable_report:
NTEmailReport.emailReport(result, db, run, report_url,
email_config, toAddress, success, commit)