Use jq instead of json_reformat in validate-docx-golden-tests2.

This commit is contained in:
John MacFarlane
2025-05-11 11:01:44 -07:00
parent ab67c02359
commit f37b12d941
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ validate-docx-golden-tests: ## validate docx golden tests against schema
validate-docx-golden-tests2: ## validate docx golden tests using OOXMLValidator
which dotnet || ("dotnet is required" && exit 1)
which json_reformat || ("json_reformat is required" && exit 1)
which jq || ("jq is required" && exit 1)
test -d ./OOXML-Validator || \
(git clone https://github.com/mikeebowen/OOXML-Validator.git \
&& cd OOXML-Validator && dotnet build --configuration=Release)
+1 -1
View File
@@ -5,6 +5,6 @@ set -eu
(for i in "$@"; do
dotnet run --configuration=Release --framework=net8.0 --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r
done) >validation
json_reformat -s <validation
jq <validation
[ $(cat validation | wc -c) = 2 ]