diff options
author | Arthur She <arthur.she@linaro.org> | 2020-10-17 19:23:25 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2020-10-17 19:23:25 -0700 |
commit | 46987fadfacec7985ed1219a3d0f95b720f0b2e1 (patch) | |
tree | e0f61083196b66cf341a34cb613e1fc8a48ef176 | |
parent | f5e0e95ecb5f49f0f3ef6391b02959805b02146c (diff) |
igt: Force python to use uft-8 as stderr/stdout encoding
LKFT Python environment will still use ASCII as stdout encoding
which led to some problems while parsing igt test result log.
Setting 'PYTHONIOENCODING=utf-8' will solve this problem.
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r-- | automated/linux/igt/igt-test.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/linux/igt/igt-test.yaml b/automated/linux/igt/igt-test.yaml index b9c6411f..acca2902 100644 --- a/automated/linux/igt/igt-test.yaml +++ b/automated/linux/igt/igt-test.yaml @@ -51,7 +51,7 @@ run: - echo "************ Dump IGT test result ************"; - echo "**********************************************"; - if [ -f "${IGT_DIR}/results/results.json.bz2" ]; then bunzip2 ${IGT_DIR}/results/results.json.bz2; fi - - ./print-test-result.py -f ${IGT_DIR}/results/results.json + - PYTHONIOENCODING=utf-8 ./print-test-result.py -f ${IGT_DIR}/results/results.json - if [ -n "${ARTIFACTORIAL_TOKEN}" -a -n "${ARTIFACTORIAL_URL}" ]; then - UPLOAD_TOOL="../../utils/upload-to-artifactorial.sh" - if [ -d "/root/dump-frames/" -a -n "`ls /root/dump-frames/`" ]; then echo "Got error frames.." ; tar -C /root -zcf dump-frames.tar.gz dump-frames/; |