ctdb-tests: Do not require eval tricks for faking NFS callout
commit4cbb0b13ba26a4b8de1334f1d166e0cb33d89383
authorMartin Schwenke <martin@meltin.net>
Fri, 27 May 2022 13:16:28 +0000 (27 23:16 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 24 Jun 2022 09:49:33 +0000 (24 09:49 +0000)
tree4e727ecece9fbee78984cbf2f47a85ac76bf292c
parent0247fd8a02bf3840940d781c8323be3fa07c4d5e
ctdb-tests: Do not require eval tricks for faking NFS callout

The current code requires the use of eval in the NFS callout handling
to facilitate testing.  Improve the code to remove this need.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
12 files changed:
ctdb/tests/UNIT/eventscripts/06.nfs.releaseip.001.sh
ctdb/tests/UNIT/eventscripts/06.nfs.releaseip.002.sh
ctdb/tests/UNIT/eventscripts/06.nfs.takeip.001.sh
ctdb/tests/UNIT/eventscripts/06.nfs.takeip.002.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.108.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.109.sh
ctdb/tests/UNIT/eventscripts/60.nfs.releaseip.002.sh
ctdb/tests/UNIT/eventscripts/60.nfs.shutdown.002.sh
ctdb/tests/UNIT/eventscripts/60.nfs.startup.002.sh
ctdb/tests/UNIT/eventscripts/60.nfs.takeip.002.sh
ctdb/tests/UNIT/eventscripts/scripts/local.sh
ctdb/tests/UNIT/eventscripts/stubs/nfs-fake-callout [new file with mode: 0755]