From 3096f18480907dec7c87ea9f4cfb9d9f41a85304 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 2 Jan 2025 09:44:07 +0800 Subject: [PATCH] Fix target file --- runner/main/jobtypes/performance/performance.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runner/main/jobtypes/performance/performance.sh b/runner/main/jobtypes/performance/performance.sh index 67a6431..3830c7f 100644 --- a/runner/main/jobtypes/performance/performance.sh +++ b/runner/main/jobtypes/performance/performance.sh @@ -32,6 +32,7 @@ function performance_to_env_file() { WEBSERVER MOODLE_WWWROOT SITESIZE + TARGET_FILE ) echo "${env[@]}" } @@ -46,6 +47,7 @@ function performance_to_summary() { echo "== MOODLE_CONFIG: ${MOODLE_CONFIG}" echo "== PLUGINSTOINSTALL: ${PLUGINSTOINSTALL}" echo "== SITESIZE: ${SITESIZE}" + echo "== TARGET_FILE: ${TARGET_FILE}" } # This job type defines the following env variables @@ -249,7 +251,7 @@ function performance_teardown() { echo "Storing data with a git commit of '${GIT_COMMIT}'" # We use the storage directory to store data for long term comparison. - TARGETDIR=`dirname "${TARGET}"` + TARGETDIR=`dirname "${TARGET_FILE}"` mkdir -p "${WORKSPACE}/${TARGETDIR}" cp -rf "${DATADIR}/rundata.json" "${TARGET_FILE}" }