Resolve the "ls: Unknown option '-1'" error in the Android shell by removing -1v option from ls command used to find number of cpus on a platform.
Reported-by: Naresh Kamboju naresh.kamboju@linaro.org Signed-off-by: Lisa Nguyen lisa.nguyen@linaro.org --- include/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/functions.sh b/include/functions.sh index 7a113b6..74b2294 100644 --- a/include/functions.sh +++ b/include/functions.sh @@ -30,7 +30,7 @@ TEST_NAME=$(basename ${0%.sh}) PREFIX=$TEST_NAME INC=0 CPU= -cpus=$(ls -1v $CPU_PATH | grep "cpu[0-9].*") +cpus=$(ls $CPU_PATH | grep "cpu[0-9].*") pass_count=0 fail_count=0 skip_count=0