On 19 January 2015 at 22:57, Amit Kucheria amit.kucheria@linaro.org wrote:
On Tue, Jan 20, 2015 at 6:06 AM, Lisa Nguyen lisa.nguyen@linaro.org wrote:
Rename z_sanity_check.sh script to cpuhotplug_09.sh to give it a more meaningful name and to check if all cpus are back online after running previous cpuhotplug tests.
Signed-off-by: Lisa Nguyen lisa.nguyen@linaro.org
cpuhotplug/cpuhotplug_09.sh | 39 +++++++++++++++++++++++++++++++++++++++
Rename to 99 instead of 09 so that you don't have to change the number if you add another hotplug test.
Okay that will be an easy fix.
cpuhotplug/z_sanity_check.sh | 39 --------------------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) create mode 100755 cpuhotplug/cpuhotplug_09.sh delete mode 100755 cpuhotplug/z_sanity_check.sh
diff --git a/cpuhotplug/cpuhotplug_09.sh b/cpuhotplug/cpuhotplug_09.sh new file mode 100755 index 0000000..d6fc0cc --- /dev/null +++ b/cpuhotplug/cpuhotplug_09.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# PM-QA validation test suite for the power management on Linux +# +# Copyright (C) 2011, Linaro Limited. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# Contributors: +# Daniel Lezcano daniel.lezcano@linaro.org (IBM Corporation) +# - initial API and implementation +# +# URL :
+. ../include/functions.sh
+check_cpus_online() {
ret=$(cat $CPU_PATH/offline)
if [ -z "$ret" ]; then
return 0
else
return 1
fi
+}
+check "all cpus are back online" "check_cpus_online" +test_status_show diff --git a/cpuhotplug/z_sanity_check.sh b/cpuhotplug/z_sanity_check.sh deleted file mode 100755 index 98115a3..0000000 --- a/cpuhotplug/z_sanity_check.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano daniel.lezcano@linaro.org (IBM Corporation) -# - initial API and implementation -# -# URL :
-. ../include/functions.sh
-sanity_check() {
ret=$(cat $CPU_PATH/offline)
if [ -z "$ret" ]; then
return 0
else
return 1
fi
-}
-check "all cpu are back online" "sanity_check"
-test_status_show
1.7.9.5