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. Signed-off-by: Po-Yu Chuang <[email protected]> --- testcases/kernel/fs/acls/acl_test01 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 index 7901002..7f883c6 100755 --- a/testcases/kernel/fs/acls/acl_test01 +++ b/testcases/kernel/fs/acls/acl_test01 @@ -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 -- 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
