summaryrefslogtreecommitdiffstats
path: root/perf-framework/calc_avg
diff options
context:
space:
mode:
authorAnush Shetty <ashetty@redhat.com>2012-04-04 11:53:12 +0530
committerAnush Shetty <ashetty@redhat.com>2012-04-04 11:53:28 +0530
commit1e8ced063c9b1bee94763eab247d870299b65708 (patch)
tree3593b3ffc98be9e4be2e148f1e9fd196c57aa55b /perf-framework/calc_avg
parentb85ec1096909fd8cb477078bd3dec97480167dc5 (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-xperf-framework/calc_avg6
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.$$