Skip to content

Commit

Permalink
Fix target file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 2, 2025
1 parent 0660513 commit 3096f18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runner/main/jobtypes/performance/performance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function performance_to_env_file() {
WEBSERVER
MOODLE_WWWROOT
SITESIZE
TARGET_FILE
)
echo "${env[@]}"
}
Expand All @@ -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
Expand Down Expand Up @@ -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}"
}
Expand Down

0 comments on commit 3096f18

Please sign in to comment.