ctdb-tests: Improve Debian-style event script unit testing
commit0b728a4e8f6f81b5c2b44fa65d2b68167eb8e7ce
authorMartin Schwenke <martin@meltin.net>
Fri, 18 Mar 2022 01:55:07 +0000 (18 12:55 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 24 Jun 2022 09:49:33 +0000 (24 09:49 +0000)
tree1873a8fbf92ed6ca23a6d5177f4d1623b6f5090d
parent7f3a0c7e9c5388b5947e0d79105335508967a7ea
ctdb-tests: Improve Debian-style event script unit testing

Tests can be run by hand using different distro styles, such as:

  CTDB_NFS_DISTRO_STYLE=systemd-debian \
    ./tests/run_tests.sh ./tests/UNIT/eventscripts/{06,60}.nfs.*

This fixes known problems for Debian styles, so the tests now pass for
the following values of CTDB_NFS_DISTRO_STYLE:

  systemd-redhat
  sysvinit-redhat
  systemd-debian
  sysvinit-debian

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/eventscripts/scripts/60.nfs.sh