OSDN Git Service

tests: adjust cleanup_ handler to work with init.sh
authorJim Meyering <meyering@redhat.com>
Sat, 20 Nov 2010 15:02:23 +0000 (16:02 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 20 Nov 2010 16:24:33 +0000 (17:24 +0100)
commit4d021ba2c6c9f175e2ea56a55bb8d2b0d189a0ca
tree6a83de0d750fe03eaad603bb1385954e99474ffc
parentefe0166c817f2c3665862042dd5ef181e88e37c0
tests: adjust cleanup_ handler to work with init.sh

* tests/init.cfg (cleanup_, cleanup_fn_, cleanup_final_): Define.
* tests/t-local.sh (cleanup_final_): Use this to ensure that we
always release the lock and run rmmod.  Overriding the trap did not
do the job.
* libparted/tests/t2100-zerolen.sh: Use cleanup_fn_, not cleanup_.
* tests/t1100-busy-label.sh: Likewise.
* tests/t1101-busy-partition.sh: Likewise.
* tests/t4100-dvh-partition-limits.sh: Likewise.
* tests/t4100-msdos-partition-limits.sh: Likewise.
* tests/t6000-dm.sh: Likewise.
* tests/t8000-loop.sh: Likewise.
libparted/tests/t2100-zerolen.sh
tests/init.cfg
tests/t-local.sh
tests/t1100-busy-label.sh
tests/t1101-busy-partition.sh
tests/t4100-dvh-partition-limits.sh
tests/t4100-msdos-partition-limits.sh
tests/t6000-dm.sh
tests/t8000-loop.sh