Skip to content

Commit

Permalink
Merge pull request #14 from redhat-performance/fix_upload
Browse files Browse the repository at this point in the history
Fix uploads
  • Loading branch information
dvalinrh authored Jan 20, 2023
2 parents 2ca65d7 + 2ac9c5e commit 4bdb552
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions passmark/passmark_run
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,22 @@ move_data_to_export()

run_passmark()
{
cd /${to_home_root}/${to_user}
#
# 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
if [ ! -d "PerformanceTest" ]; then
if [[ $arch == "aarch64" ]]; then
unzip pt_linux_arm64.zip
unzip uploads/pt_linux_arm64.zip
else
unzip pt_linux_x64.zip
unzip uploads/pt_linux_x64.zip
fi
fi

Expand Down Expand Up @@ -239,6 +249,7 @@ 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 4bdb552

Please sign in to comment.