Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 24df381

Browse files
committed
Merge branch '211-fixing-save-summary-as-an-artifact' into 'master'
fix directory for summary Closes #211 See merge request postgres-ai-team/nancy!206
2 parents 93d8cde + c39f7fb commit 24df381

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nancy_run.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,6 +2046,14 @@ function save_artifacts() {
20462046
exit 1
20472047
fi
20482048
fi
2049+
2050+
# save summary as artifact
2051+
local cur_sum_fname=""
2052+
for cur_sum_fname in "$TMP_PATH"/summary.*.txt; do
2053+
[[ -e "${cur_sum_fname}" ]] || continue
2054+
cp "${cur_sum_fname}" "$ARTIFACTS_DESTINATION/$ARTIFACTS_DIRNAME/"
2055+
done
2056+
20492057
msg "Artifacts saved"
20502058
}
20512059

@@ -2427,7 +2435,7 @@ while : ; do
24272435
do_cpu_test $i
24282436
do_fs_test $i
24292437

2430-
summary_fname="$ARTIFACTS_DESTINATION/$ARTIFACTS_DIRNAME/summary.${num}.txt"
2438+
summary_fname="${TMP_PATH}/summary.${num}.txt"
24312439

24322440
#restore database if not first run
24332441
if [[ "$i" -gt "0" ]]; then

0 commit comments

Comments
 (0)