diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:54 +0000 |
commit | 7a366520dc4f3e6d2ed07fa78f1c6d439357ad07 (patch) | |
tree | 6bab43bfba7ca0ef9fa43194652d7fd62dbf8ffe /debian/tests | |
parent | Adding debian version 4.12.1-1. (diff) | |
download | fence-agents-debian.tar.xz fence-agents-debian.zip |
Adding debian version 4.12.1-2~exp1.debian/4.12.1-2_exp1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests')
-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" \ |