Skip to content

Commit a8c774e

Browse files
committed
wip: Fix env vars
1 parent 52dab5e commit a8c774e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

benchmark/benchmarks.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ set -eu
33

44
readonly SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
55
export TRACER_DIR="${SCRIPT_DIR}/.."
6-
export REPORTS_DIR="${ARTIFACTS_DIR}"
76
export UTILS_DIR="${SCRIPT_DIR}/utils"
87
export SHELL_UTILS_DIR="${UTILS_DIR}/shell"
98
export K6_UTILS_DIR="${UTILS_DIR}/k6"
@@ -33,9 +32,9 @@ if [[ ! -f "${TRACER}" ]]; then
3332
cd "${SCRIPT_DIR}"
3433
fi
3534

36-
# Cleanup previous reports
37-
rm -rf "${REPORTS_DIR}"
38-
mkdir -p "${REPORTS_DIR}"
35+
# Cleanup previous artifacts
36+
rm -rf "${ARTIFACTS_DIR}"
37+
mkdir -p "${ARTIFACTS_DIR}"
3938

4039
if [[ "$#" == '0' ]]; then
4140
for type in 'startup' 'load' 'dacapo'; do

benchmark/dacapo/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ run_benchmark() {
1616
export BENCHMARK="${type}"
1717

1818
# create output folder for the test
19-
export OUTPUT_DIR="${REPORTS_DIR}/dacapo/${type}"
19+
export OUTPUT_DIR="${ARTIFACTS_DIR}/dacapo/${type}"
2020
mkdir -p "${OUTPUT_DIR}"
2121

2222
# substitute environment variables in the json file

benchmark/load/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for app in *; do
2424

2525
message "${type} benchmark: ${app} started"
2626

27-
export OUTPUT_DIR="${REPORTS_DIR}/${type}/${app}"
27+
export OUTPUT_DIR="${ARTIFACTS_DIR}/${type}/${app}"
2828
mkdir -p ${OUTPUT_DIR}
2929

3030
if [ "${app}" == "petclinic" ]; then

benchmark/utils/run-sirun-benchmarks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ run_benchmark() {
1414
cd "${app}"
1515

1616
# create output folder for the test
17-
export OUTPUT_DIR="${REPORTS_DIR}/${type}/${app}"
17+
export OUTPUT_DIR="${ARTIFACTS_DIR}/${type}/${app}"
1818
mkdir -p "${OUTPUT_DIR}"
1919

2020
# substitute environment variables in the json file

0 commit comments

Comments
 (0)