diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2015-04-02 14:14:21 -0600 |
---|---|---|
committer | Rob Savoye <rob.savoye@linaro.org> | 2015-04-02 14:14:21 -0600 |
commit | 7f2d031267c3333a1dc8017ebaa44f7e4276dd59 (patch) | |
tree | b283dea6c24417a929112cf1227c11f94c8c2e57 /testsuite | |
parent | b63aa1676d6b77b27ab1153704202a92787aef64 (diff) |
fix string quoting in test output
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/gerrit-tests.sh | 29 |
1 files changed, 3 insertions, 26 deletions
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" |