diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-14 23:08:59 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-14 23:09:18 +0530 |
commit | a0524eef8de657234af4c23183b64cbed0efdb5d (patch) | |
tree | 741b353191b78dcc11b1bf1778de7d0c3d4ec33b /tests/test-discoverer.sh.in | |
parent | d83fcedb766a819601cf77b79d7db59277f9e8d3 (diff) | |
download | gupnp-dlna-a0524eef8de657234af4c23183b64cbed0efdb5d.tar.gz |
tests: Skip tests if media is missing
Diffstat (limited to 'tests/test-discoverer.sh.in')
-rw-r--r-- | tests/test-discoverer.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-discoverer.sh.in b/tests/test-discoverer.sh.in index 09058cf..086f699 100644 --- a/tests/test-discoverer.sh.in +++ b/tests/test-discoverer.sh.in @@ -38,6 +38,13 @@ if [[ "x${FILE_LIST}" = "x" || "x${MEDIA_DIR}" = "x" ]]; then shift fi +if [[ ! -e "${MEDIA_DIR}" ]]; then + echo "***" + echo "WARNING: the specified media directory (${MEDIA_DIR}) was not found. Skipping discoverer tests." + echo "***" + exit 77 +fi + ret=0 while read line; do |