diff options
| author | Edwin Török <[email protected]> | 2023-12-19 19:16:42 +0000 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-12-19 15:00:23 -0800 |
| commit | c6892bec243fd3c8118fa87885455a7e6ce87f78 (patch) | |
| tree | 0b18c2b6345e2e47fb87a20af16bcf85aea8ecc1 /tools | |
| parent | 0e86a84e3323980dd8a0071d6ad901179cdc4a35 (diff) | |
ci(validate-docx-golden-tests2): fail on errors
The validator just prints errors, but always exited with nonzero.
Signed-off-by: Edwin Török <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/validate-docx2.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/validate-docx2.sh b/tools/validate-docx2.sh new file mode 100644 index 000000000..65827452e --- /dev/null +++ b/tools/validate-docx2.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -eu + +(for i in "$@"; do + dotnet run --configuration=Release --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r +done) >validation +json_reformat -s <validation + +[ $(cat validation | wc -c) = 2 ] |
