From: Aleksander Mistewicz Date: Thu, 12 May 2016 11:15:56 +0000 (+0200) Subject: Fix snapshot linking bug in tsp/scripts/publish.sh X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F69724%2F17;p=tools%2Ftestlab%2Fmajor.git Fix snapshot linking bug in tsp/scripts/publish.sh If the results for a prerelease had been published before the results for the snapshot were, then the page of the results wouldn't have been linked to the main site. Change-Id: Ie0d625a60ee283eed8783a4df46e8857ae921b33 Signed-off-by: Aleksander Mistewicz --- diff --git a/tsp/scripts/publish.sh b/tsp/scripts/publish.sh index 936a229..523bb6c 100755 --- a/tsp/scripts/publish.sh +++ b/tsp/scripts/publish.sh @@ -36,7 +36,7 @@ echo '[['"${PROJECT}"']]' >> "${OUTPUT}" echo "" >> "${OUTPUT}" echo "${PAGE_END}" >> "${OUTPUT}" -python3 /srv/pwb/pwb.py get "${PAGE}" | grep "${PROJECT}" \ +python3 /srv/pwb/pwb.py get "${PAGE}" | grep "\[\[${PROJECT}\]\]" \ || python3 /srv/pwb/pwb.py pagefromfile -start:"${PAGE_START}" -end:"${PAGE_END}" -appendtop \ -notitle -file:"${WORKSPACE}/${OUTPUT}"