acl_test01: fix incorrect failure losetup.1
PATCH 1/1 acl_test01: fix incorrect failure losetup.1
From: Po-Yu Chuang <[email protected]>
The LOOP_DEV empty checking was incorrect.
Use command for command substitution.
Also move the assignment out of condition expression. Bash 3.2.9 and Busybox 1.17.3 ash do not seem to support this kind of usage.
--- testcases/kernel/fs/acls/acl_test01 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
testcases/kernel/fs/acls/acl_test01 +2 -1
@@ -125,7 +125,8 @@ else # Avoid hardcoded loopback device values (-f tries to find the first # available loopback device name)! - if ! (LOOP_DEV=$(losetup -f) && [ "x$LOOP_DEV" = x ]); then + LOOP_DEV=`losetup -f` + if [ "x$LOOP_DEV" = x ]; then tst_resm TCONF "[ losetup.1 ] Failed to find an available loopback device -- is the required support compiled in your kernel?" exit 0 fi
Signature · 12 lines
1.6.3.3 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 8 lines · Po-Yu Chuang
From: Po-Yu Chuang <[email protected]>
The
LOOP_DEVempty checking was incorrect.Use
commandfor command substitution.Also move the assignment out of condition expression. Bash 3.2.9 and Busybox 1.17.3 ash do not seem to support this kind of usage.
Yeah... looking back and knowing what I do now, that would never work because that's executed in a subshell.
Thanks!
-Garrett
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list