OSDN Git Service

tests: serialize tests that use the scsi_debug module
authorJim Meyering <meyering@redhat.com>
Mon, 2 Nov 2009 18:44:40 +0000 (19:44 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 3 Nov 2009 15:51:33 +0000 (16:51 +0100)
commit9f6e4d647c20c05490d9671dc85caf83575b6a30
tree7d583d58e4998397ca21113a7161fed02cee123a
parent6a116f2b9fa54a8596afd47f2783713551e7ae6c
tests: serialize tests that use the scsi_debug module

* tests/t-local.sh (scsi_debug_lock_file_): New global.
(scsi_debug_acquire_lock_): New function.
(scsi_debug_setup_): Call it, to acquire the lock.
(scsi_debug_cleanup_): Release the lock.
tests/t-local.sh