File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
suites/Kernel/FunctionalArea/baseport Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
13# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
24# SPDX-License-Identifier: BSD-3-Clause-Clear
35
4- #! /bin/sh
56# Import test suite definitions
67set -x
78chmod 777 -R /var/common/*
@@ -25,15 +26,15 @@ NC="\033[0m" # No Color
2526
2627# Function to log
2728log_info () {
28- echo -e " ${YELLOW} [INFO]${NC} $1 "
29+ echo " ${YELLOW} [INFO]${NC} $1 "
2930}
3031
3132log_success () {
32- echo -e " ${GREEN} [SUCCESS]${NC} $1 "
33+ echo " ${GREEN} [SUCCESS]${NC} $1 "
3334}
3435
3536log_error () {
36- echo -e " ${RED} [ERROR]${NC} $1 "
37+ echo " ${RED} [ERROR]${NC} $1 "
3738}
3839
3940# Verify app binary exists
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ echo "$usb_output"
3232
3333# Check if any USB devices were found
3434if [ " $device_count " -eq 0 ]; then
35- log_fail " $TESTNAME : Test Failed - No USB devices found."
36- echo " $TESTNAME FAIL" > $test_path /$TESTNAME .res
35+ log_fail " $TESTNAME : Test Failed - No USB devices found."
36+ echo " $TESTNAME FAIL" > $test_path /$TESTNAME .res
3737elif [ " $non_hub_count " -eq 0 ]; then
38- log_fail " $TESTNAME : Test Failed - Only USB hubs detected, no functional USB devices."
39- echo " $TESTNAME FAIL" > $test_path /$TESTNAME .res
38+ log_fail " $TESTNAME : Test Failed - Only USB hubs detected, no functional USB devices."
39+ echo " $TESTNAME FAIL" > $test_path /$TESTNAME .res
4040else
41- log_pass " $TESTNAME : Test Passed - $non_hub_count non-hub USB device(s) found."
42- echo " $TESTNAME PASS" > $test_path /$TESTNAME .res
41+ log_pass " $TESTNAME : Test Passed - $non_hub_count non-hub USB device(s) found."
42+ echo " $TESTNAME PASS" > $test_path /$TESTNAME .res
4343fi
4444
45- log_info " -------------------Completed $TESTNAME Testcase----------------------------"
45+ log_info " -------------------Completed $TESTNAME Testcase----------------------------"
Original file line number Diff line number Diff line change 1+ # shellcheck disable=SC2148
2+ # Intentionally not defining shell.
3+
14# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
25# SPDX-License-Identifier: BSD-3-Clause-Clear
36
47# Detect Android userland
58ANDROID_PATH=/system/build.prop
69if [ -f $ANDROID_PATH ]; then
710 ANDROID=1
11+ # shellcheck disable=SC2209,SC2034
812 SHELL_CMD=sh
913else
1014 ANDROID=0
15+ # shellcheck disable=SC2209,SC2034
1116 SHELL_CMD=bash
1217fi
1318
You can’t perform that action at this time.
0 commit comments