From a8d991730acc4bbed17eb559b017a80183809960 Mon Sep 17 00:00:00 2001 From: Konstantin Belov Date: Tue, 17 Oct 2023 13:48:33 +0200 Subject: [PATCH] automated: linux: mmtests: reworked MMTESTS_TYPE_NAME Variable removed from launch command as not required for MMTests. MMTESTS_TYPE_NAME renamed to TEST_NAME as it's not related to MMTests. Signed-off-by: Konstantin Belov --- automated/linux/mmtests/mmtests.sh | 3 --- automated/linux/mmtests/mmtests.yaml | 9 ++++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/automated/linux/mmtests/mmtests.sh b/automated/linux/mmtests/mmtests.sh index 3702f8bf9..c81a0859c 100755 --- a/automated/linux/mmtests/mmtests.sh +++ b/automated/linux/mmtests/mmtests.sh @@ -47,9 +47,6 @@ usage() { MMMTests configuration file that describes how the benchmarks should be configured and executed. - -t - MMTests test type, e.g. sysbenchcpu, iozone, sqlite, etc. - -r Maximum number of retries for the single benchmark's source file download diff --git a/automated/linux/mmtests/mmtests.yaml b/automated/linux/mmtests/mmtests.yaml index b9d0b0e07..1bf50a498 100644 --- a/automated/linux/mmtests/mmtests.yaml +++ b/automated/linux/mmtests/mmtests.yaml @@ -38,8 +38,8 @@ params: # looked for in TEST_DIR. Otherwise, it is cloned to $(pwd)/mmtests TEST_DIR: "/mmtests" - # MMTests test type, e.g. sysbenchcpu, iozone, sqlite, etc. - MMTESTS_TYPE_NAME: null + # Name of the test, which used to distinguish tests in reporting system + TEST_NAME: null # MMTests configuration file that describes how the benchmarks should be # configured and executed. @@ -61,10 +61,9 @@ run: [ -n "${TEST_DIR}" ] && cmd+=" -p '${TEST_DIR}'"; [ -n "${TEST_GIT_URL}" ] && cmd+=" -u '${TEST_GIT_URL}'"; [ -n "${MMTESTS_CONFIG_FILE}" ] && cmd+=" -c '${MMTESTS_CONFIG_FILE}'"; - [ -n "${MMTESTS_TYPE_NAME}" ] && cmd+=" -t '${MMTESTS_TYPE_NAME}'"; [ -n "${MMTESTS_MAX_RETRIES}" ] && cmd+=" -r '${MMTESTS_MAX_RETRIES}'"; [ -n "${MMTEST_ITERATIONS}" ] && cmd+=" -i '${MMTEST_ITERATIONS}'"; eval $cmd - - if [ ! -z ${TEST_DIR} ]; then mv ${TEST_DIR}/../${MMTESTS_TYPE_NAME}*.json .; fi - - for file in ./${MMTESTS_TYPE_NAME}*.json; do ./json-to-lava.py $file >> ./output/result.txt; done + - if [ ! -z ${TEST_DIR} ]; then mv ${TEST_DIR}/../${TEST_NAME}*.json .; fi + - for file in ./${TEST_NAME}*.json; do ./json-to-lava.py $file >> ./output/result.txt; done - ../../utils/send-to-lava.sh ./output/result.txt