1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-11-28 08:49:44 +02:00

cc: fix code climate comments

This commit is contained in:
Marcus Holl 2019-02-26 16:51:47 +01:00
parent 13f8a7d21d
commit 050170036d
2 changed files with 7 additions and 8 deletions

View File

@ -3,18 +3,18 @@
WORKSPACES_ROOT=workspaces
[ -e "${WORKSPACES_ROOT}" ] && rm -rf ${WORKSPACES_ROOT}
TEST_CASES=`find . -type f -depth 2 -name '*.yml'`
TEST_CASES=$(find . -type f -depth 2 -name '*.yml')
i=0
for f in ${TEST_CASES}
do
testCase=`basename ${f%.*}`
area=`dirname ${f#*/}`
testCase=$(basename "${f%.*}")
area=$(dirname "${f#*/}")
echo "[INFO] Running test case \"${testCase}\" in area \"${area}\"."
TEST_CASE_ROOT="${WORKSPACES_ROOT}/${area}/${testCase}"
[ -e "${TEST_CASE_ROOT}" ] && rm -rf "${TEST_CASE_ROOT}"
mkdir -p "${TEST_CASE_ROOT}"
source runTest.sh "${area}" "${testCase}" "${TEST_CASE_ROOT}" &> "${TEST_CASE_ROOT}/log.txt" &
source ./runTest.sh "${testCase}" "${TEST_CASE_ROOT}" &> "${TEST_CASE_ROOT}/log.txt" &
pid=$!
processes[$i]="${testCase}:${pid}"
echo "[INFO] Test case \"${testCase}\" in area \"${area}\" launched. (PID: \"${pid}\")."
@ -28,7 +28,7 @@ do
testCase=${p%:*}
processId=${p#*:}
echo "[INFO] Waiting for test case \"${testCase}\" (PID: \"${processId}\")."
wait ${processId}
wait "${processId}"
echo "[INFO] Test case \"${testCase}\" finished (PID: \"${processId}\")."
echo "[INFO] <START> Logs for test case \"${testCase}\"."
cat "${TEST_CASE_ROOT}/log.txt"

View File

@ -1,8 +1,7 @@
#!/usr/bin/env bash
TEST_AREA=$1
TEST_CASE=$2
TEST_CASE_ROOT=$3
TEST_CASE=$1
TEST_CASE_ROOT=$2
TEST_CASE_WORKSPACE="${TEST_CASE_ROOT}/workspace"
LIBRARY_VERSION_UNDER_TEST=$(git log --format="%H" -n 1)