src.seek(0)
for line_in_list in src:
stripped_line=line_in_list.strip('\n')
+ if len(stripped_line)==0:
+ continue
#for profile
if(stripped_line.startswith('##') and stripped_line.endswith('##')):
end_hash_index = stripped_line.find('##',2)
else:
checking = False
#for build_type
- if(checking == True and stripped_line.startswith(TYPE)):
+ if(checking == True and stripped_line.startswith(TYPE+":")):
tc_name_index = stripped_line.find(':')
tc_name = stripped_line[tc_name_index+1:]
if (test1.find(tc_name)>=0):
src.seek(0)
for line_in_list in src:
stripped_line=line_in_list.strip()
+ if len(stripped_line)==0:
+ continue
#for profile
if(stripped_line.startswith('##') and stripped_line.endswith('##')):
end_hash_index = stripped_line.find('##',2)
else:
checking = False
#for build_type
- if(checking == True and stripped_line.startswith(BUILD_TYPE)):
+ if(checking == True and stripped_line.startswith(BUILD_TYPE+':')):
tc_name_index = stripped_line.find(':')
tc_name = stripped_line[tc_name_index+1:]
if (test1.find(tc_name)>=0):
ROOTSTRAP_STRING_ARRAY=($ROOTSTRAP_LIST)
for ROOTSTRAP_NAME in "${ROOTSTRAP_STRING_ARRAY[@]}";
do
- DATE_STR="cut -d'.' -f5 <<<$ROOTSTRAP_NAME" #extracting date string from rootstrap name and finding the latest date and rootstrap
+ DATE_STR=`cut -d'.' -f 5 <<<$ROOTSTRAP_NAME` #extracting date string from rootstrap name and finding the latest date and rootstrap
if [[ "$DATE_STR" > "$LATEST_DATE" ]] && [[ ! -z "$DATE_STR" ]]; then
LATEST_DATE=$DATE_STR
EXISTING_ROOTSTRAP=$ROOTSTRAP_NAME