From 4c78bcf89c83bd7de1597f256f975d2d7273079a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 24 Aug 2020 06:29:26 -0700 Subject: [PATCH] doc: Update the test script for wikiparser Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/scripts/test-wikiparser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/scripts/test-wikiparser b/doc/scripts/test-wikiparser index 4f2537468..096da865d 100755 --- a/doc/scripts/test-wikiparser +++ b/doc/scripts/test-wikiparser @@ -3,7 +3,7 @@ for var in "$@" do - gen=$(python3 scripts/wikiparser.py "$var" | xmllint --format -) - orig=$(sed 's/.*<\/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