Skip to content

Commit

Permalink
Merge pull request #15 from redhat-performance/fix_upload
Browse files Browse the repository at this point in the history
Fix uploads to be generic
  • Loading branch information
dvalinrh authored Feb 14, 2023
2 parents 4bdb552 + d23ffc9 commit 4e9041e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions passmark/passmark_run
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ else
run_dir=`echo $0 | cut -d'/' -f 1-${chars}`
fi

cd $rundir
cd $run_dir
arch=`uname -m`

show_usage=0
Expand Down Expand Up @@ -197,17 +197,7 @@ move_data_to_export()

run_passmark()
{
#
# Go to where uploads is located.
#
if [[ -d "/mnt/uploads" ]]; then
pushd /mnt > /dev/null
else
#
# Else assume in current directory.
#
pushd . > /dev/null
fi
pushd $curdir > /dev/null
if [ ! -d "PerformanceTest" ]; then
if [[ $arch == "aarch64" ]]; then
unzip uploads/pt_linux_arm64.zip
Expand Down Expand Up @@ -249,7 +239,6 @@ run_passmark()
echo $TOOLS_BIN/execute_via_pbench --cmd_executing "$0" $arguments --test ${test_name} --spacing 11 --pbench_stats $to_pstats
$TOOLS_BIN/execute_via_pbench --cmd_executing "$0" $arguments --test ${test_name} --spacing 11 --pbench_stats $to_pstats
fi
popd > /dev/null
}

install_tools "$@"
Expand Down

0 comments on commit 4e9041e

Please sign in to comment.