aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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