TT#12307 Debian/stretch uses systemd-udevd instead of udevd, requires new goss versions

Recent goss versions provide template support, rely on this
to support different Debian versions at the same time.

NOTE: https://deb.sipwise.com/files/goss-0.3.1-linux-amd64
is available now

Change-Id: I9b51f9799f20626c376e1966f8a587abee3dba58
changes/87/12687/2
Michael Prokop 9 years ago
parent 68bbc9cf03
commit 0070a9ddd7

@ -64,5 +64,10 @@ process:
running: true
sshd:
running: true
{{if eq .Env.DEBIAN_RELEASE "8"}}
udevd:
running: true
{{else}}
systemd-udevd:
running: true
{{end}}

@ -100,8 +100,13 @@ process:
snmpd:
running: true
{{if eq .Env.DEBIAN_RELEASE "8"}}
udevd:
running: true
{{else}}
systemd-udevd:
running: true
{{end}}
voisniff-ng:
running: true

@ -33,7 +33,7 @@ if ls /var/cores/core.perl-fcgi.sig11* >/dev/null 2>&1 ; then
echo "========================== DONE =============================="
fi
goss="goss-0.2.4-linux-amd64"
goss="goss-0.3.1-linux-amd64"
if [ ! -x "/usr/sbin/${goss}" ] ; then
echo "Downloading goss and installing as /usr/sbin/${goss}"
@ -67,6 +67,7 @@ rm -rf "${REPORT_DIRECTORY}"
mkdir -p "${REPORT_DIRECTORY}"
TAP_RESULTS="${REPORT_DIRECTORY}/goss_${TYPE}_results.tap"
goss -g "/etc/ngcp-tests/${TYPE}/goss.yaml" validate --format tap | tee "${TAP_RESULTS}"
DEBIAN_RELEASE=$(sed -e 's/\([0-9]*\)\..*/\1/' /etc/debian_version)
DEBIAN_RELEASE=$DEBIAN_RELEASE goss -g "/etc/ngcp-tests/${TYPE}/goss.yaml" validate --format tap | tee "${TAP_RESULTS}"
exit "${PIPESTATUS[0]}"

Loading…
Cancel
Save