From 49f3ee22d3ac0954d8c9cb8830a3d880ea3194fd Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Tue, 8 Jul 2014 04:52:12 +0100 Subject: Better handle test results from non-BuildFarm jobs Change-Id: If5382e1460e4c2b931d9afa779faf879a0dcb41d --- tcwgweb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcwgweb.sh') diff --git a/tcwgweb.sh b/tcwgweb.sh index 665295c6..2b49057a 100755 --- a/tcwgweb.sh +++ b/tcwgweb.sh @@ -65,7 +65,8 @@ diffbaseline () local version="`echo $1 | grep -o "[0-9]\.[0-9]*" | head -1`" # local version="`echo $1 | grep -o "[0-9]\.[0-9]*\.[0-9]"`" local target="`basename $1`" - local target="`echo ${target} | sed -e 's:-BuildFarm.*::'`" + # Strip -BuildFarmN from the end of results. Strip just N for other jobs. + local target="`echo ${target} | sed -e 's:-BuildFarm.*::' -e 's:\(-[a-zA-Z]*\)[0-9]\+$:\1:'`" local build="`basename $1`" local build="`echo ${build} | cut -d '-' -f 1`" -- cgit v1.2.3