From 7f2d031267c3333a1dc8017ebaa44f7e4276dd59 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Thu, 2 Apr 2015 14:14:21 -0600 Subject: fix string quoting in test output --- testsuite/gerrit-tests.sh | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'testsuite') diff --git a/testsuite/gerrit-tests.sh b/testsuite/gerrit-tests.sh index 2253cd93..8b946d6c 100755 --- a/testsuite/gerrit-tests.sh +++ b/testsuite/gerrit-tests.sh @@ -16,17 +16,9 @@ EOF srcdir="/tmp" -# FIXME: Note these following test cases only PASS if you have the source -# directories created already. -if test -d ${srcdir}; then - fail_state=fail -else - fail_state=untested -fi - out="`extract_gerrit_host ${srcdir}`" if test x"${out}" = x"review.linaro.org"; then - pass extract_gerrit_host"" + pass "extract_gerrit_host" else ${fail_state} "extract_gerrit_host" fixme "extract_gerrit_host returned ${out}" @@ -34,7 +26,7 @@ fi out="`extract_gerrit_project ${srcdir}`" if test x"${out}" = x"toolchain/gcc"; then - pass extract_gerrit_project"" + pass "extract_gerrit_project" else ${fail_state} "extract_gerrit_project" fixme "extract_gerrit_project returned ${out}" @@ -42,7 +34,7 @@ fi out="`extract_gerrit_username ${srcdir}`" if test x"${out}" = x"buildslave"; then - pass extract_gerrit_project"" + pass "extract_gerrit_project" else ${fail_state} "extract_gerrit_project" fixme "extract_gerrit_project returned ${out}" @@ -58,21 +50,6 @@ fi rm -f ${review} -# FIXME: Note these following test cases only PASS if you have the source -# directories created already. -#srcdir="${local_snapshots}/gcc.git" -srcdir="/linaro/shared/snapshots/gcc.git" -if test -d ${srcdir}; then - out="`get_git_revision ${srcdir}`" - out="`echo ${out} | grep -o [a-z0-9]\*`" - if test x"${out}" != x; then - pass "get_git_revision" - else - ${fail_state} "get_git_revision" - fixme "get_git_revision returned ${out}" - fi -fi - export BUILD_CAUSE="SCMTRIGGER" export BUILD_CAUSE_SCMTRIGGER="true" export GERRIT_CHANGE_ID="I39b6f9298b792755db08cb609a1a446b5e83603b" -- cgit v1.2.3