From 8cc6dd7bdf2ce9973d16e22930f776c667c3a96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Martin?= Date: Mon, 9 Dec 2024 20:24:06 -0800 Subject: [PATCH] Accept underscores in temp files --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 7b6c42e..c63014e 100755 --- a/test.sh +++ b/test.sh @@ -37,7 +37,7 @@ fi test_4_actual=$(curl --silent --request POST --data-binary @test/validate-error.xlsx http://127.0.0.1:5001/api/v1/convert | sed 's/tmp[0-9a-z]\{8\}//g') test_4_expected=$(echo '{"error":"ODK Validate Errors:\n>> Something broke the parser.\nError evaluating field '\''concat'\'' (${concat}[1]): The problem was located in Calculate expression for ${concat}\nXPath evaluation: cannot handle function '\''concatx'\''\nCaused by: org.javarosa.xpath.XPathUnhandledException: The problem was located in Calculate expression for ${concat}\nXPath evaluation: cannot handle function '\''concatx'\''\n\t... 10 more\n\nThe following files failed validation:\n${}\n\nResult: Invalid","itemsets":null,"result":null,"status":400,"warnings":null}' | sed 's/tmp[0-9a-z]\{8\}//g') if [ "$test_4_actual" != "$test_4_expected" ]; then - echo "test 4 failed: form that passes pyxform's internal checks, but fails ODK Validate's checks" + echo "test 4 failed: form that passes pyxform's internal checks, but fails ODK Validate's checks\n$test_4_actual\n$test_4_expected" test_failed="true" fi