Skip to content

Commit

Permalink
builds/nut-driver-enumerator-test/ci_build.sh : use the "selftest" du…
Browse files Browse the repository at this point in the history
…mmy service framework if systemd is not available in the testing OS environment
  • Loading branch information
jimklimov committed Oct 11, 2018
1 parent fa5efb3 commit c373211
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builds/nut-driver-enumerator-test/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export BUILDDIR SRCDIR

# Travis uses Ubuntu 14.04 which does not yet have systemd (16.04 should)
# The self-tests do not (yet) use the actual OS framework, so just let them run
SERVICE_FRAMEWORK="systemd"
export SERVICE_FRAMEWORK
if [ ! -x /bin/systemctl ] ; then
SERVICE_FRAMEWORK="selftest"
export SERVICE_FRAMEWORK
fi

printf "\n=== `date -u` : Will test nut-driver-enumerator interpreted by: "
if [ -n "${SHELL_PROGS}" ] ; then
Expand Down

0 comments on commit c373211

Please sign in to comment.