[script] now return status on each arch upgrade task

This commit is contained in:
tangxifan 2022-08-22 18:23:00 -07:00
parent b6e1175517
commit 2bbf2f02c9
2 changed files with 8 additions and 3 deletions

View File

@ -97,7 +97,6 @@ def convert_arch_xml_from_v1p1_to_v1p2(input_fname, output_fname):
logging.info(log_end_str1 + "." * (len(log_str) - len(log_end_str1) - len(log_end_str2)) + log_end_str2)
return status
#####################################################################
# Main function
#####################################################################
@ -115,4 +114,4 @@ if __name__ == '__main__':
args = parser.parse_args()
# Run conversion: from v1.1 syntax to v1.2 syntax
convert_arch_xml_from_v1p1_to_v1p2(args.input_file, args.output_file)
return convert_arch_xml_from_v1p1_to_v1p2(args.input_file, args.output_file)

View File

@ -8,6 +8,10 @@ SHELL = bash
PYTHON_EXEC ?= python3
ARCH_UPDATER = ../scripts/arch_file_updater.py
.SILENT:
.ONESHELL:
# Put it first so that "make" without argument is like "make help".
export COMMENT_EXTRACT
@ -17,7 +21,9 @@ help:
v1p1_to_v1p2:
# This commands will update all the architecture file from v1.1 to v1.2
for f in `ls *.xml`; do ${PYTHON_EXEC} ${ARCH_UPDATER} --input_file $${f} --output_file $${f}; done;
for f in `ls *.xml`; \
do ${PYTHON_EXEC} ${ARCH_UPDATER} --input_file $${f} --output_file $${f} || exit 1; \
done;
# Functions to extract comments from Makefiles
define COMMENT_EXTRACT