diff --git a/icinga-build-deb-test b/icinga-build-deb-test index 36489ba7cdc080025fff862970674f39779c8ee6..87906565cfbc81b3f312f0f97c04948ab9f8454e 100755 --- a/icinga-build-deb-test +++ b/icinga-build-deb-test @@ -20,7 +20,9 @@ fi ) test_script= -if [ -f "${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test" ]; then +if [ -n "$@" ]; then + test_script="$@" +elif [ -f "${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test" ]; then test_script="${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test" elif [ -f "debian/icinga-build-test" ]; then test_script="debian/icinga-build-test" diff --git a/icinga-build-rpm-test b/icinga-build-rpm-test index 602aa14d0a5713ef583b70ab18d07cbb6bae4510..030793a8b58fe22deb65a68a1e1a218f643748c7 100755 --- a/icinga-build-rpm-test +++ b/icinga-build-rpm-test @@ -57,7 +57,9 @@ REPO esac test_script= -if [ -f "icinga-build-test" ]; then +if [ -n "$@" ]; then + test_script="$@" +elif [ -f "icinga-build-test" ]; then test_script="./icinga-build-test" elif [ -f "${WORKDIR}/testing/start_test.sh" ]; then test_script="${WORKDIR}/testing/start_test.sh" diff --git a/icinga-build-test b/icinga-build-test index 10191b83c08179c47a58b68c66ad95f112a168ea..27b3810fb97748d612ed0076713b13d6384801bf 100755 --- a/icinga-build-test +++ b/icinga-build-test @@ -7,7 +7,7 @@ FILES_DEBIAN="$(ls -d ./debian ./*/debian 2>/dev/null)" if [ -n "${FILES_SPEC}" ]; then echo "Detected RPM source: ${FILES_SPEC}" echo - if ! icinga-build-rpm-test; then + if ! icinga-build-rpm-test "$@"; then echo "[ test failed! ]" exit 1 fi @@ -15,7 +15,7 @@ if [ -n "${FILES_SPEC}" ]; then elif [ -n "${FILES_DEBIAN}" ]; then echo "Detected Debian packaging paths: ${FILES_DEBIAN}" echo - if ! icinga-build-deb-test; then + if ! icinga-build-deb-test "$@"; then echo "[ test failed! ]" exit 1 fi