From 00b619330e25713fc2d7d61754402f47cf760419 Mon Sep 17 00:00:00 2001 From: qiuzhong Date: Wed, 24 Oct 2018 11:17:17 +0800 Subject: [PATCH] Add UCS-4 support check for Python in build-css-testsuites.sh CSS test suite build system requires Python UCS-4 support. Add this check in css/build-css-testsuites.sh. Fix: #5504 --- css/build-css-testsuites.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/css/build-css-testsuites.sh b/css/build-css-testsuites.sh index cf40f562471753..3ec72652f31daf 100755 --- a/css/build-css-testsuites.sh +++ b/css/build-css-testsuites.sh @@ -35,6 +35,11 @@ main() { exit 1 fi + if [ `$PYTHON -c 'import sys; print(sys.maxunicode)'` != "1114111" ]; then + echo "UCS-4 support for Python is required" + exit 1 + fi + virtualenv -p $PYTHON $VENV || { echo "Please ensure virtualenv is installed"; exit 2; } fi