Skip to content

Commit

Permalink
automated: linux: mmtests: replace "benchmark" with config name
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Belov <[email protected]>
  • Loading branch information
Konstantin Belov committed Oct 26, 2023
1 parent f73451e commit cf4e098
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions automated/linux/mmtests/mmtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,24 @@ prepare_system() {
export AUTO_PACKAGE_INSTALL
downloaded=0
counter=0
results_dir="${MMTESTS_CONFIG_FILE#configs/}"
# Install benchmark according to the configuration file.
while [ $downloaded -eq 0 ] && [ $counter -lt "$MMTESTS_MAX_RETRIES" ]; do
./run-mmtests.sh -b -n -c "${MMTESTS_CONFIG_FILE}" benchmark && downloaded=1
./run-mmtests.sh -b -n -c "${MMTESTS_CONFIG_FILE}" "${results_dir}" && downloaded=1
counter=$((counter+1))
done
}

run_test() {

info_msg "Running ${MMTESTS_CONFIG_FILE} test..."
# Run benchmark according config file and with disabled monitoring.
# Results will be stored in work/log/benchmark directory.
export MMTEST_ITERATIONS=${MMTEST_ITERATIONS}
results_dir="${MMTESTS_CONFIG_FILE#configs/}"
# Disable packages auto installation
touch ~/.mmtests-never-auto-package-install
# Using nice to increase priority for the benchmark.
nice -n -5 ./run-mmtests.sh -np -c "${MMTESTS_CONFIG_FILE}" benchmark
nice -n -5 ./run-mmtests.sh -np -c "${MMTESTS_CONFIG_FILE}" "${results_dir}"
}

extract_json() {
Expand Down

0 comments on commit cf4e098

Please sign in to comment.