summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2014-10-17 02:35:12 +1100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-10-20 13:44:48 +0000
commit1f1b2146bd89e056def45e0341962002955017db (patch)
tree99b8f2565e8f93a63541310348cf5ecb43d52ba2 /android
parentf9f4e66349dab083e90e9d1536bfd325740cc4a2 (diff)
sd-mmc.sh: POSIX Compliant Update.
This change is to make the test script to be POSIX compliant. Original patch comes from: Lucas Dutra Nunes <ldnunes@ossystems.com.br> Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: I9f28a92d837d0f9a0f3e66f52cd2699a449f9004
Diffstat (limited to 'android')
-rwxr-xr-xandroid/scripts/sd-mmc.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/scripts/sd-mmc.sh b/android/scripts/sd-mmc.sh
index 81cb5b3..4add54f 100755
--- a/android/scripts/sd-mmc.sh
+++ b/android/scripts/sd-mmc.sh
@@ -2,7 +2,7 @@
#
# SD MMC test cases for Linaro Android
#
-# Copyright (C) 2013, Linaro Limited.
+# Copyright (C) 2010 - 2014, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -20,7 +20,7 @@
#
# Author: Botao Sun <botao.sun@linaro.org>
-function check_return_fail() {
+check_return_fail() {
if [ $? -ne 0 ]; then
fail_test "$1"
return 0
@@ -29,12 +29,12 @@ function check_return_fail() {
fi
}
-function fail_test() {
+fail_test() {
local reason=$1
echo "${TEST}: FAIL - ${reason}"
}
-function pass_test() {
+pass_test() {
echo "${TEST}: PASS"
}
@@ -111,4 +111,4 @@ test_print_df_output
test_write_on_sd_card
# clean exit so lava-test can trust the results
-exit 0 \ No newline at end of file
+exit 0