Remove bashisms in the cputopology scripts.
Signed-off-by: Lisa Nguyen lisa.nguyen@linaro.org --- cputopology/cputopology_01.sh | 9 ++++----- cputopology/cputopology_02.sh | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/cputopology/cputopology_01.sh b/cputopology/cputopology_01.sh index 617c9b8..cab757d 100755 --- a/cputopology/cputopology_01.sh +++ b/cputopology/cputopology_01.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # PM-QA validation test suite for the power management on Linux # @@ -25,12 +25,11 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm...
-source ../include/functions.sh +. ../include/functions.sh
check_physical_package_id() { - - local package_id=$CPU_PATH/$1/topology/physical_package_id - local val=$(cat $package_id) + package_id=$CPU_PATH/$1/topology/physical_package_id + val=$(cat $package_id)
check "topology is enabled" "test "$val" != "-1"" } diff --git a/cputopology/cputopology_02.sh b/cputopology/cputopology_02.sh index 84199c2..17513e9 100755 --- a/cputopology/cputopology_02.sh +++ b/cputopology/cputopology_02.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # PM-QA validation test suite for the power management on Linux # @@ -22,10 +22,9 @@ # Daniel Lezcano daniel.lezcano@linaro.org (IBM Corporation) # - initial API and implementation # - # URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/Pm...
-source ../include/functions.sh +. ../include/functions.sh
FILES="core_id core_siblings core_siblings_list physical_package_id \ thread_siblings thread_siblings_list"