summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-01-23 01:56:58 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2018-01-23 01:56:58 +0800
commit53fccfcfdbafd09ae61294dbe81166a8db375ff2 (patch)
tree43b9ef99aedd4d22779856c90e3f3cdf4c4923c4
parentc6276cccab85be574f9f2c32e49b0579c29eeaed (diff)
fix on bug filter problem
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xdeploy.sh5
-rw-r--r--lcr/settings.py1
-rw-r--r--report/templates/test_report.html2
3 files changed, 7 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index adb6491..80610d4 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -62,3 +62,8 @@ echo "Please update the LAVA_USER_TOKEN and LAVA_USER in report/views.py"
# Only shows the sql script, not creation
# python manage.py sqlmigrate report 0002
+# cp db.sqlite3 db.sqlite3.bak.$(date +%Y%m%d-%H%M%S)
+# scp android:/android/django_instances/lcr-report/db.sqlite3 ./
+# cat jobs.txt |awk '{print $2}' >job-ids.txt
+# sqlite3 db.sqlite3 "select * from report_testcase where job_id = 99965 ORDER BY name;"
+# sqlite3 db.sqlite3 "delete from report_testcase where job_id = 99859;"
diff --git a/lcr/settings.py b/lcr/settings.py
index e60fbca..f9cb150 100644
--- a/lcr/settings.py
+++ b/lcr/settings.py
@@ -27,6 +27,7 @@ DEBUG = True
ALLOWED_HOSTS = [u'127.0.0.1',
u'192.168.0.104',
+ u'android.linaro.org',
u'192.168.0.106']
diff --git a/report/templates/test_report.html b/report/templates/test_report.html
index 564ac84..28f3e06 100644
--- a/report/templates/test_report.html
+++ b/report/templates/test_report.html
@@ -526,7 +526,7 @@ No result for vts test jobs.
<th>Comments</th>
</tr>
{% for bug in build_bugs %}
-{% if not bug.build_no or bug.build_no == build_info.build_no %}
+{% if not bug.build_no or not bug.build_no_fixed or bug.build_no <= build_info.build_no and bug.build_no_fixed > build_info.build_no %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ bug.link }}">{{ bug.bug_id }}</a></td>