aboutsummaryrefslogtreecommitdiff
path: root/suspend
diff options
context:
space:
mode:
authorLisa Nguyen <lisa.nguyen@linaro.org>2015-01-25 18:16:45 -0800
committerLisa Nguyen <lisa.nguyen@linaro.org>2015-02-02 13:50:17 -0800
commitadf9df99d4d28e4e82aeb8189d0e9d102ab08103 (patch)
treeee1c5d5c6d8bc98f97cc0caca88c14cb2a20a2dd /suspend
parentbdd94ec9204151ba845e9c057de92360c63bbffb (diff)
Fix path to library files and change shebang line
'source' is a BASH keyword. Edit the path to the library files by using the POSIX version of the 'source' keyword. Also change the interpreter from #!/bin/bash to #!/bin/sh. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
Diffstat (limited to 'suspend')
-rwxr-xr-xsuspend/suspend_01.sh6
-rwxr-xr-xsuspend/suspend_02.sh6
-rwxr-xr-xsuspend/suspend_03.sh6
-rwxr-xr-xsuspend/suspend_04.sh6
-rwxr-xr-xsuspend/suspend_05.sh6
-rwxr-xr-xsuspend/suspend_sanity.sh4
6 files changed, 17 insertions, 17 deletions
diff --git a/suspend/suspend_01.sh b/suspend/suspend_01.sh
index 6ba8d41..bcbcc4b 100755
--- a/suspend/suspend_01.sh
+++ b/suspend/suspend_01.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -26,8 +26,8 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification#suspend_01
-source ../include/functions.sh
-source ../include/suspend_functions.sh
+. ../include/functions.sh
+. ../include/suspend_functions.sh
if [ "$suspend_dbus" -eq 0 ]; then
log_skip "dbus message suspend test not enabled"
diff --git a/suspend/suspend_02.sh b/suspend/suspend_02.sh
index 666b6a5..9113434 100755
--- a/suspend/suspend_02.sh
+++ b/suspend/suspend_02.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -26,8 +26,8 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification#suspend_02
-source ../include/functions.sh
-source ../include/suspend_functions.sh
+. ../include/functions.sh
+. ../include/suspend_functions.sh
if [ "$suspend_pmsuspend" -eq 0 ]; then
log_skip "pm-suspend test not enabled"
diff --git a/suspend/suspend_03.sh b/suspend/suspend_03.sh
index 474d3f5..70bebc4 100755
--- a/suspend/suspend_03.sh
+++ b/suspend/suspend_03.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -26,8 +26,8 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification#suspend_03
-source ../include/functions.sh
-source ../include/suspend_functions.sh
+. ../include/functions.sh
+. ../include/suspend_functions.sh
if [ "$suspend_mem" -eq 0 ]; then
log_skip "suspend to ram via sysfs not enabled"
diff --git a/suspend/suspend_04.sh b/suspend/suspend_04.sh
index 1f62cab..f937c5a 100755
--- a/suspend/suspend_04.sh
+++ b/suspend/suspend_04.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -26,8 +26,8 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification#suspend_04
-source ../include/functions.sh
-source ../include/suspend_functions.sh
+. ../include/functions.sh
+. ../include/suspend_functions.sh
if [ "$suspend_ac" -eq 0 ]; then
log_skip "suspend test involving ac power remove"
diff --git a/suspend/suspend_05.sh b/suspend/suspend_05.sh
index 9d5793e..36d613e 100755
--- a/suspend/suspend_05.sh
+++ b/suspend/suspend_05.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -26,8 +26,8 @@
# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification#suspend_05
-source ../include/functions.sh
-source ../include/suspend_functions.sh
+. ../include/functions.sh
+. ../include/suspend_functions.sh
args_power_sleep=60
diff --git a/suspend/suspend_sanity.sh b/suspend/suspend_sanity.sh
index 0f2b5d5..f37eccb 100755
--- a/suspend/suspend_sanity.sh
+++ b/suspend/suspend_sanity.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
@@ -23,7 +23,7 @@
# - initial API and implementation
#
-source ../include/functions.sh
+. ../include/functions.sh
is_root
if [ $? -ne 0 ]; then