Skip to content

Commit bc095f5

Browse files
authored
Merge pull request #7 from redhat-performance/add_metadata
Add metadata to pbench results
2 parents 9960a4c + 219a0e6 commit bc095f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyperf/pyperf_run

+3-1
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ install_tools $0
176176
test_name_run="pyperf"
177177
arguments="$@"
178178

179+
curdir=`pwd`
179180
if [[ $0 == "./"* ]]; then
180181
chars=`echo $0 | awk -v RS='/' 'END{print NR-1}'`
181182
if [[ $chars == 1 ]]; then
182183
run_dir=`pwd`
183184
else
184185
run_dir=`echo $0 | cut -d'/' -f 1-${chars} | cut -d'.' -f2-`
185-
curdir=`pwd`
186186
run_dir="${curdir}${run_dir}"
187187
fi
188188
else
@@ -265,6 +265,7 @@ if [ $to_pbench -eq 0 ]; then
265265
else
266266
source ~/.bashrc
267267
arguments="${arguments} --test_iterations ${to_times_to_run}"
268+
cd $curdir
268269
echo $TOOLS_BIN/execute_via_pbench --cmd_executing "$0" $arguments --test ${test_name_run} --spacing 11 --pbench_stats $to_pstats
269270
$TOOLS_BIN/execute_via_pbench --cmd_executing "$0" $arguments --test ${test_name_run} --spacing 11 --pbench_stats $to_pstats
270271
fi
@@ -286,6 +287,7 @@ else
286287
rm results_${test_name_run}_${to_tuned_setting}
287288
ln -s ${RESULTSDIR} results_${test_name_run}_${to_tuned_setting}
288289
mv ${test_name_run}_*.out ${RESULTSDIR}
290+
cp ${curdir}/meta_data.yml ${RESULTSDIR}
289291
tar hcf results_${test_name_run}_${to_tuned_setting}.tar results_${test_name_run}_${to_tuned_setting}
290292
cp results_${test_name_run}_${to_tuned_setting}.tar results_pbench_${test_name_run}_${to_tuned_setting}.tar
291293
fi

0 commit comments

Comments
 (0)