Return-Path: From: Wang Mingyu Date: Tue, 24 Jul 2018 04:33:22 -0700 Message-ID: <1532432002-4341-2-git-send-email-wangmy@cn.fujitsu.com> In-Reply-To: <1532432002-4341-1-git-send-email-wangmy@cn.fujitsu.com> References: <1532432002-4341-1-git-send-email-wangmy@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH] busybox: modify the code of option g+x in chmod1 test List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Change the cut to retrieve the group permission bytes, to check that they are executable. Signed-off-by: Wang Mingyu --- engine/tests/Functional.busybox/tests/busybox_chmod1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/tests/Functional.busybox/tests/busybox_chmod1.sh b/engine/tests/Functional.busybox/tests/busybox_chmod1.sh index cdc7d18..2eef95a 100644 --- a/engine/tests/Functional.busybox/tests/busybox_chmod1.sh +++ b/engine/tests/Functional.busybox/tests/busybox_chmod1.sh @@ -21,7 +21,7 @@ else fi; busybox chmod g+x ./test_dir/test1 -if [ "$(busybox ls -l ./test_dir | grep -v "total" | cut -b 1-3)" = "-rw" ] +if [ "$(busybox ls -l ./test_dir | grep -v "total" | cut -b 5-7)" = "r-x" ] then echo " -> $test: Changed file permissions verification#2 succeeded." else -- 1.8.3.1