summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2015-07-01 00:49:00 +0200
committerJens Georg <mail@jensge.org>2015-07-01 00:50:47 +0200
commit629d05827fa8996d594d28a0e5e8d7efda7418e5 (patch)
treeca9fd52a2cd2295515a7d393472d0239eedd9e2b
parent9007c6920d162c6f53316dc14390358d9a0473cd (diff)
downloadgupnp-dlna-629d05827fa8996d594d28a0e5e8d7efda7418e5.tar.gz
Use XFAIL information from gupnp-dlna-media
Signed-off-by: Jens Georg <mail@jensge.org> https://bugzilla.gnome.org/show_bug.cgi?id=751634
-rw-r--r--tests/test-discoverer.sh.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test-discoverer.sh.in b/tests/test-discoverer.sh.in
index a8d616c..0e69aee 100644
--- a/tests/test-discoverer.sh.in
+++ b/tests/test-discoverer.sh.in
@@ -63,6 +63,8 @@ while read line; do
path=$(echo ${line} | cut -f 1 -d ',')
profile=$(echo ${line} | cut -f 2 -d ',')
mime=$(echo ${line} | cut -f 3 -d ',')
+ xfail=$(echo ${line} | cut -f 4 -d ',')
+ bug=$(echo ${line} | cut -f 5 -d ',')
# Run discoverer to get profile name/mime
out=$(${GUPNP_DLNA_INFO} -a ${@} ${MEDIA_DIR}/${path})
@@ -72,8 +74,12 @@ while read line; do
# Now compare the two
echo -n " Testing ${path} ... "
if [[ "x${profile}" != "x${out_profile}" || "x${mime}" != "x${out_mime}" ]]; then
- ret=1
- echo -e "\e[01;31mFAIL: ${path},${out_profile},${out_mime}\e[0m"
+ if [[ "x${xfail}" != "x" ]]; then
+ echo "XFAIL: ${bug}"
+ else
+ ret=1
+ echo -e "\e[01;31mFAIL: ${path},${out_profile},${out_mime}\e[0m"
+ fi
else
echo "PASS"
fi