From b7024159e8233cf48ae57fe56a269e386a1bcdf5 Mon Sep 17 00:00:00 2001 From: Wayne Zhang Date: Thu, 23 Feb 2017 12:10:13 -0800 Subject: [PATCH] try to escape json again. --- script/create-test-env-json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/create-test-env-json b/script/create-test-env-json index fab800d6c..d11415206 100755 --- a/script/create-test-env-json +++ b/script/create-test-env-json @@ -46,7 +46,7 @@ cat << EOF > "${TEST_ENV}" { "test": "${TEST}", "run_id": "${ID}", - "run_description": "$(printf '%q' "${SUBJECT}")", + "run_description": $(python -c "import json; a='${SUBJECT}'; print json.dumps(a)"), "owner": "${AUTHOR}" } EOF