diff options
Diffstat (limited to '')
-rw-r--r-- | debian/tests/control | 8 | ||||
-rwxr-xr-x | debian/tests/metadata | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/debian/tests/control b/debian/tests/control index 0abf418..5adb300 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,15 +1,15 @@ Tests: metadata -Depends: fence-agents, python3-openstackclient, xsltproc, libxml2-utils, gawk +Depends: fence-agents, xsltproc, libxml2-utils, gawk, @recommends@ Tests: delay -Depends: fence-agents, python3-openstackclient, time, iputils-ping +Depends: fence-agents, time, @recommends@ Tests: fence-dummy -Depends: fence-agents +Depends: fence-agents-dummy Restrictions: allow-stderr Tests: fence-aws -Depends: fence-agents +Depends: fence-agents-aws Restrictions: skippable Test-Command: /usr/sbin/fence_virt -h diff --git a/debian/tests/metadata b/debian/tests/metadata index 21c1ece..cf91d28 100755 --- a/debian/tests/metadata +++ b/debian/tests/metadata @@ -13,8 +13,12 @@ for agent in /usr/sbin/fence_*; do TESTXML=tests/data/metadata/${agent##*/}.xml if [ -f "$TESTXML" ]; then - gawk 'BEGIN {store=-1} /name=".*_path"/ || /name=".*_file"/ {store=2} {if (store!=0) {print}; store--}' "$TMPXML" \ - | diff -u "$TESTXML" - + if [ "$agent" = "/usr/sbin/fence_virt" ]; then + diff -u "$TESTXML" "$TMPXML" + else + gawk 'BEGIN {store=-1} /name=".*_path"/ || /name=".*_file"/ {store=2} {if (store!=0) {print}; store--}' "$TMPXML" \ + | diff -u "$TESTXML" - + fi fi xsltproc lib/fence2rng.xsl "$TMPXML" \ |