diff options
author | Anush Shetty <ashetty@redhat.com> | 2012-04-04 11:53:12 +0530 |
---|---|---|
committer | Anush Shetty <ashetty@redhat.com> | 2012-04-04 11:53:28 +0530 |
commit | 1e8ced063c9b1bee94763eab247d870299b65708 (patch) | |
tree | 3593b3ffc98be9e4be2e148f1e9fd196c57aa55b /perf-framework/calc_avg | |
parent | b85ec1096909fd8cb477078bd3dec97480167dc5 (diff) |
Code cleanup: Removing hardcoded path
Change-Id: Id67a4096d03394499241bcc01154b60bcc0bc5a9
Signed-off-by: Anush Shetty <ashetty@redhat.com>
Diffstat (limited to 'perf-framework/calc_avg')
-rwxr-xr-x | perf-framework/calc_avg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perf-framework/calc_avg b/perf-framework/calc_avg index 596554f..92f02c8 100755 --- a/perf-framework/calc_avg +++ b/perf-framework/calc_avg @@ -1,11 +1,13 @@ #!/bin/bash -ue +source gf_perf_config + egrep_patt="" num="" for run in "$@" do egrep_patt+="^`echo run$run\|`" - PERFLOG="log_repo/run$run/client/perf-test.log" + PERFLOG="$LOCAL_LOG_REPO/run$run/client/perf-test.log" if [ $run -lt 9 ] then run="0$run" @@ -26,7 +28,7 @@ done egrep_patt+="^zzz" echo "" -egrep -w "$egrep_patt" log_repo/runlog +egrep -w "$egrep_patt" $LOCAL_LOG_REPO/runlog echo "" echo "Operations " > /tmp/tmp_ops.$$ echo "-------------------------" >> /tmp/tmp_ops.$$ |