[Fuego] [PATCH] busybox: modify the code of option g+x in chmod1 test

Wang Mingyu wangmy at cn.fujitsu.com
Mon Jul 23 05:35:13 UTC 2018


Change the cut to retrieve the group permission bytes, to check that they are 'execute' ('x').

Signed-off-by: Wang Mingyu <wangmy at cn.fujitsu.com>
---
 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





More information about the Fuego mailing list