Skip to content

Commit 4b9d9e7

Browse files
committed
making log dir more easy to set
1 parent ca28257 commit 4b9d9e7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/scripts/run_tests_with_ollama.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ OLLAMA_MODELS=(
3535
"granite3.2-vision"
3636
)
3737

38-
# Log directory
39-
LOGDIR="logs/$(date +%Y%m%d_%H%M%S)"
38+
# Log directory - use MELLEA_LOGDIR if set (from nightly.py), otherwise create standalone
39+
if [[ -n "${MELLEA_LOGDIR:-}" ]]; then
40+
LOGDIR="$MELLEA_LOGDIR"
41+
log "Using provided log directory: $LOGDIR"
42+
else
43+
LOGDIR="logs/$(date +%Y-%m-%d-%H:%M:%S)"
44+
log "Using standalone log directory: $LOGDIR"
45+
fi
4046
mkdir -p "$LOGDIR"
4147

4248
cleanup() {

0 commit comments

Comments
 (0)