master - tests: utils.sh separately assign
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d7b381522352c684c5c55657125963533fe98132 Commit: d7b381522352c684c5c55657125963533fe98132 Parent: cf4b671acd4d7ff87dea3ffa88ff99377d093c50 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jun 29 21:22:52 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jun 29 22:23:17 2017 +0200
tests: utils.sh separately assign
Declare and assign separately to avoid masking return values.
--- test/lib/utils.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
test/lib/utils.sh +2 -1
@@ -188,7 +188,8 @@ STACKTRACE() { init_udev_transaction() { if test "$DM_UDEV_SYNCHRONISATION" = 1; then - local cookie=$(dmsetup udevcreatecookie) + local cookie + cookie=$(dmsetup udevcreatecookie) # Cookie is not generated if udev is not running! test -z "$cookie" || export DM_UDEV_COOKIE=$cookie fi