From 40ab534b4b5ae2a417bd2f0df5f94746e85d4adc Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 2 Jul 2017 09:47:53 +0200 Subject: [PATCH] Skip lzo-test if lzo not in Bacula --- regress/tests/lzo-test | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/regress/tests/lzo-test b/regress/tests/lzo-test index 2c278485c1..ebaf294fb7 100755 --- a/regress/tests/lzo-test +++ b/regress/tests/lzo-test @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2000-2015 Kern Sibbald +# Copyright (C) 2000-2017 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # @@ -12,6 +12,12 @@ TestName="lzo-test" JobName=lzo . scripts/functions +grep "LZO support:.*yes" ${cwd}/build/config.out >/dev/null +if [ $? != 0 ] ; then + echo "LZO support not enabled in Bacula. Skipping lzo-test" + exit 0 +fi + scripts/cleanup scripts/copy-test-confs echo "${cwd}/build" >${cwd}/tmp/file-list -- 2.39.5