File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ if [[ "$BENCHMARK_STRATEGY" == "collection-reload" ]]; then
37
37
export TELEMETRY_API_RESPONSE_FILE=$( ls -t results/telemetry-api-* .json | head -n 1)
38
38
else
39
39
# any other strategies are considered to have search & upload results
40
- export SEARCH_RESULTS_FILE=$( ls -t results/* -search-* .json | head -n 1)
41
- export UPLOAD_RESULTS_FILE=$( ls -t results/* -upload-* .json | head -n 1)
40
+ export SEARCH_RESULTS_FILE=$( find results/ -type f -name ' *-search-*.json' -printf ' %T@ %p\n ' | sort -nr | head -n 1 | cut -d ' ' -f2- )
41
+ export UPLOAD_RESULTS_FILE=$( find results/ -type f -name ' *-upload-*.json' -printf ' %T@ %p\n ' | sort -nr | head -n 1 | cut -d ' ' -f2- )
42
42
43
43
if [[ " $BENCHMARK_STRATEGY " == " parallel" ]]; then
44
44
export PARALLEL_UPLOAD_RESULTS_FILE=$( ls -t results/parallel/* -upload-* .json | head -n 1)
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ result_files_arr=()
56
56
result_parallel_files_arr=()
57
57
58
58
if [[ " $EXPERIMENT_MODE " == " full" ]] || [[ " $EXPERIMENT_MODE " == " upload" ]]; then
59
- UPLOAD_RESULT_FILE=$( ssh -o ServerAliveInterval=10 -o ServerAliveCountMax=10 " ${SERVER_USERNAME} @${IP_OF_THE_CLIENT} " " ls -t results/*-upload-*.json | head -n 1" )
59
+ UPLOAD_RESULT_FILE=$( ssh -o ServerAliveInterval=10 -o ServerAliveCountMax=10 " ${SERVER_USERNAME} @${IP_OF_THE_CLIENT} " " find results/ -type f -name ' *-upload-*.json' -printf '%T@ %p\n' | sort -nr | head -n 1 | cut -d' ' -f2- " )
60
60
result_files_arr+=(" $UPLOAD_RESULT_FILE " )
61
61
fi
62
62
You can’t perform that action at this time.
0 commit comments