2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

[xCAT Jenkins Email Report] Remove comment from test bundle file, and do chomp()ing

This commit is contained in:
GONG Jie
2016-07-18 20:49:05 +08:00
committed by GONG Jie
parent 39375683ae
commit 3b92cfb5c4

View File

@@ -284,8 +284,11 @@ function xcattestbundle2sql()
while read -r test_case_name
do
# Need chomp ${test_case_name}
# Remove any comment
test_case_name="${test_case_name%%#*}"
# Chomp
test_case_name=$(echo ${test_case_name})
[ -z "${test_case_name}" ] && continue
while read -r ; do echo "${REPLY}" ; done <<-EOF
INSERT INTO TestCase (TestCaseId, TestCaseName)