diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-01-12 13:24:47 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2015-01-12 13:24:47 +0530 |
commit | db3190492f1c895503434e87e516940c18107d06 (patch) | |
tree | 27734b23077ef1404e75a5727bf21dffd33db0f7 | |
parent | e0d8920013a9c148a1be5a7b02c726945e4ad2b6 (diff) |
manage dumps
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | cpufreq.sh | 14 | ||||
-rwxr-xr-x | runme.sh | 3 |
2 files changed, 14 insertions, 3 deletions
@@ -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 @@ -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 |