diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-03 17:19:17 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-03 18:30:15 +0100 |
commit | 78e2b39b93b210c704af4280fb8e35cf5239f6cf (patch) | |
tree | 000e5e8d9568ac73fa4e1b2d4247ca181d18d6fb /tests/t9020-alignment.sh | |
parent | d2c59e0640f2b323481cd1647f3788cdf2921c7f (diff) | |
download | parted-78e2b39b93b210c704af4280fb8e35cf5239f6cf.tar.gz |
tests: do not invoke scsi_debug_setup_ in a subshell
* tests/t9010-big-sector.sh: Do not invoke scsi_debug_setup_ in
a subshell, since it sets a variable that cleanup machinery expects
to see.
* tests/t9020-alignment.sh: Likewise.
Diffstat (limited to 'tests/t9020-alignment.sh')
-rwxr-xr-x | tests/t9020-alignment.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t9020-alignment.sh b/tests/t9020-alignment.sh index 66e0e1b..f59d6ae 100755 --- a/tests/t9020-alignment.sh +++ b/tests/t9020-alignment.sh @@ -41,8 +41,9 @@ partition alignment: 0 1 EOF # create memory-backed device -scsi_dev=$(scsi_debug_setup_ physblk_exp=3 lowest_aligned=7 num_parts=4) || +scsi_debug_setup_ physblk_exp=3 lowest_aligned=7 num_parts=4 > dev-name || skip_test_ 'failed to create scsi_debug device' +scsi_dev=$(cat dev-name) fail=0 |