]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: ts_scsi_debug_init must not run in a subshell
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 11 May 2014 06:50:28 +0000 (08:50 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 13 May 2014 15:38:12 +0000 (17:38 +0200)
commitf45df374ffc311220bd395da985b121eccfb4045
tree6f9daba1ecfcd2523a6d70085d0e2997270a61e2
parentdd761f7924747f5bd716699f80bf4c36a1dfed8e
tests: ts_scsi_debug_init must not run in a subshell

ts_skip and ts_die won't work from subshell. Now we simply use
TS_DEVICE which is globally set in that function.

I've made sure that we never change TS_DEVICE variable after
we've got it. So we could use it again for cleanup on exit in
ts_{finalize,die,skip} functions.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
17 files changed:
tests/ts/blkid/md-raid1-part
tests/ts/eject/umount
tests/ts/fdisk/align-512-4K
tests/ts/fdisk/align-512-4K-63
tests/ts/fdisk/align-512-4K-md
tests/ts/fdisk/align-512-512-topology
tests/ts/libmount/context
tests/ts/libmount/context-py
tests/ts/libmount/context-utab
tests/ts/libmount/context-utab-py
tests/ts/libmount/tabfiles-tags
tests/ts/libmount/tabfiles-tags-py
tests/ts/losetup/losetup
tests/ts/mount/umount-alltargets
tests/ts/mount/umount-recursive
tests/ts/partx/partx
tests/ts/wipefs/wipefs