[script] now return status on each arch upgrade task
This commit is contained in:
parent
b6e1175517
commit
2bbf2f02c9
|
@ -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)
|
logging.info(log_end_str1 + "." * (len(log_str) - len(log_end_str1) - len(log_end_str2)) + log_end_str2)
|
||||||
return status
|
return status
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Main function
|
# Main function
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
@ -115,4 +114,4 @@ if __name__ == '__main__':
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Run conversion: from v1.1 syntax to v1.2 syntax
|
# 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)
|
||||||
|
|
|
@ -8,6 +8,10 @@ SHELL = bash
|
||||||
PYTHON_EXEC ?= python3
|
PYTHON_EXEC ?= python3
|
||||||
ARCH_UPDATER = ../scripts/arch_file_updater.py
|
ARCH_UPDATER = ../scripts/arch_file_updater.py
|
||||||
|
|
||||||
|
.SILENT:
|
||||||
|
|
||||||
|
.ONESHELL:
|
||||||
|
|
||||||
# Put it first so that "make" without argument is like "make help".
|
# Put it first so that "make" without argument is like "make help".
|
||||||
export COMMENT_EXTRACT
|
export COMMENT_EXTRACT
|
||||||
|
|
||||||
|
@ -17,7 +21,9 @@ help:
|
||||||
|
|
||||||
v1p1_to_v1p2:
|
v1p1_to_v1p2:
|
||||||
# This commands will update all the architecture file from v1.1 to v1.2
|
# 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
|
# Functions to extract comments from Makefiles
|
||||||
define COMMENT_EXTRACT
|
define COMMENT_EXTRACT
|
||||||
|
|
Loading…
Reference in New Issue