aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-12 13:24:47 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2015-01-12 13:24:47 +0530
commitdb3190492f1c895503434e87e516940c18107d06 (patch)
tree27734b23077ef1404e75a5727bf21dffd33db0f7
parente0d8920013a9c148a1be5a7b02c726945e4ad2b6 (diff)
manage dumps
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-xcpufreq.sh14
-rwxr-xr-xrunme.sh3
2 files changed, 14 insertions, 3 deletions
diff --git a/cpufreq.sh b/cpufreq.sh
index 772326d..4f4c2db 100755
--- a/cpufreq.sh
+++ b/cpufreq.sh
@@ -199,12 +199,20 @@ shuffle_frequency_for_all_cpus()
call_routine()
{
# call routine
- $1 > $2.txt
+ $1 >> $2.txt
- dmesg | grep cpufreq > $2.cpufreq.txt
+ dmesg | grep cpufreq >> $2.cpufreq.txt
# We may need the full logs as well
- dmesg --read-clear > $2.full.txt
+ dmesg --read-clear >> $2.full.txt
+}
+
+# clear dumps
+clear_dumps()
+{
+ echo "" > $2.txt
+ echo "" > $2.cpufreq.txt
+ echo "" > $2.full.txt
}
# Basic cpufreq tests
diff --git a/runme.sh b/runme.sh
index 360315c..0897392 100755
--- a/runme.sh
+++ b/runme.sh
@@ -43,6 +43,9 @@ parse_arguments()
# Run isolation test for $FUNC
run_func()
{
+ # clear dumps first, we will append it later
+ clear_dumps
+
case "$FUNC" in
"basic")
call_routine cpufreq_basic_tests $OUTFILE