diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-02-14 14:02:17 +0530 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-02-14 11:49:30 +0000 |
commit | 9ff1126e0a0569b3a348b7d4db4026960345a5af (patch) | |
tree | fa7655cecfaa30d405088d03047af465b3d27546 | |
parent | 5bb08e2cc06514a2cb8267ac8a7635992a82b626 (diff) |
is-cpu-isolated: Print exact isolation time instead of STRESS_DURATION
Change-Id: Ic2b83f693214cde5129284ef787a52a6ab586cb3
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 91a2b3c..5c85546 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -47,12 +47,14 @@ get_isolation_duration() { isdebug echo "initial count: " $new_count old_count=$new_count + T2="$(date +%s)" while [ $new_count -eq $old_count ] do new_count=$(get_tick_count) ps h -C stress -o pid > /dev/null if [ $? != 0 ]; then - echo "Tick didn't got updated for stress duration:" $STRESS_DURATION + T=$(($(date +%s)-$T2)) + echo "Tick didn't got updated for stress duration:" $T echo "Probably in infinite mode, quiting test" echo "test_case_id:Min-isolation "$MIN_ISOLATION" secs result:"$RESULT" measurement:"$STRESS_DURATION" units:secs" exit |