Skip to content

Commit 77fde77

Browse files
authored
Merge pull request #27 from redhat-performance/fix_user
Fix reporting of wrong user count. Issue is old data being left around.
2 parents bbf9fbd + df4d019 commit 77fde77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hammerdb/hammerdb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ if [[ $to_tuned_setting != "none" ]]; then
293293
tuned_original=`tuned-adm active | cut -d' ' -f4`
294294
tuned-adm profile $to_tuned_setting
295295
fi
296+
pushd /usr/local > /dev/null
297+
rm -rf $test
298+
popd > /dev/null
296299
cd $exec_dir
297300
echo ./run_hammerdb -m /perf1 -t ${test} ${users_to_run} ${warehouses} ${log_mount} > run_this
298301
chmod 755 run_this
@@ -316,7 +319,9 @@ rm -f results_pbench.tar
316319

317320
tmp_file=`mktemp /tmp/hammer_data.XXXXX`
318321
find -L $test -type f -exec grep -Iq . {} \; -print > $tmp_file
319-
egrep "out|csv|report" temp | egrep -v "Hammerdb" | grep -v tcl | tar cf /tmp/results_hammerdb_${test}_${to_tuned_setting}.tar --files-from=/dev/stdin
322+
echo "/usr/local/HammerDB/results_hammerdb_${test}.csv" >> $tmp_file
323+
egrep "out|csv|report" $tmp_file | egrep -v "Hammerdb" | grep -v tcl | tar cf /tmp/results_hammerdb_${test}_${to_tuned_setting}.tar --files-from=/dev/stdin
324+
${curdir}/test_tools/save_results --curdir $curdir --home_root $to_home_root --tar_file /tmp/results_hammerdb_${test}_${to_tuned_setting}.tar --test_name $test_name_${test} --tuned_setting=$to_tuned_setting --version "None" --user $to_user
320325
rm $tmp_file
321326

322327
if [[ $to_tuned_setting != "none" ]]; then

0 commit comments

Comments
 (0)