doc: Update the test script for wikiparser

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-08-28 12:10:40 -04:00
1 parent 72ca92224d
commit 4c78bcf89c
1 file changed
+2 -2
+2 -2
View File
@@ -3,7 +3,7 @@
for var in "$@"
do
gen=$(python3 scripts/wikiparser.py "$var" | xmllint --format -)
orig=$(sed 's/<revhistory>.*<\/revhistory>//g' "${var//.wiki/.xml}" | xmllint --format -)
gen=$(python3 scripts/wikiparser.py "$var" --begin-marker='## BEGIN_INCLUDE' --end-marker='## END_INCLUDE' | xsltproc scripts/fixes.xslt - | xmllint --format -)
orig=$(xmllint --format "${var//.raw.wiki/.xml}" )
diff --ignore-all-space <(echo "$gen") <(echo "$orig")
done