]> granicus.if.org Git - icu/commitdiff
ICU-10923 Configure should fail when Python fails.
authorShane Carr <shane@unicode.org>
Tue, 12 Feb 2019 02:36:53 +0000 (18:36 -0800)
committerShane F. Carr <shane@unicode.org>
Sat, 16 Feb 2019 01:10:59 +0000 (17:10 -0800)
icu4c/source/configure
icu4c/source/configure.ac

index 0853e07149ac0449b4a14f34199a9797925c39db..91c3513743baca5026a43a31523d7f1338752125 100755 (executable)
@@ -9134,12 +9134,18 @@ else
         --in_dir "$srcdir/data" \
         --filter_file "$ICU_DATA_FILTER_FILE" \
         > data/rules.mk
+    if test "$?" != "0"; then
+        as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
+    fi
     echo "Spawning Python to generate test/testdata/rules.mk..."
     PYTHONPATH="$srcdir/test/testdata:$srcdir/data" $PYTHON -m buildtool \
         --mode gnumake \
         --seqmode parallel \
         --in_dir "$srcdir/test/testdata" \
         > test/testdata/rules.mk
+    if test "$?" != "0"; then
+        as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
+    fi
 fi
 
 echo
index 170e86909f95df2f4f97c08244215cfc7da9f444..e5feb4cde5be4fb5295ae352b0ff00f199b83d92 100644 (file)
@@ -1398,12 +1398,18 @@ else
         --in_dir "$srcdir/data" \
         --filter_file "$ICU_DATA_FILTER_FILE" \
         > data/rules.mk
+    if test "$?" != "0"; then
+        AC_MSG_ERROR(Python failed to run; see above error.)
+    fi
     echo "Spawning Python to generate test/testdata/rules.mk..."
     PYTHONPATH="$srcdir/test/testdata:$srcdir/data" $PYTHON -m buildtool \
         --mode gnumake \
         --seqmode parallel \
         --in_dir "$srcdir/test/testdata" \
         > test/testdata/rules.mk
+    if test "$?" != "0"; then
+        AC_MSG_ERROR(Python failed to run; see above error.)
+    fi
 fi
 
 echo