Skip to content

Commit

Permalink
prod: tests common: add support for remote logging
Browse files Browse the repository at this point in the history
Added remote logging for all boards in main_tests

Signed-off-by: Ramona Alexandra Nechita <[email protected]>
  • Loading branch information
ranechita committed Jun 2, 2022
1 parent 14f6e7d commit b50903c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main_tests/lib/production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,13 @@ production() {
fi

if [ "$FAILED" == "0" ] ; then
if [ $SYNCHRONIZATION -eq 0 ]; then
cat "$LOGFILE" > "$LOGDIR/passed_${BOARD_SERIAL}_${RUN_TIMESTAMP}.log"
else
cat "$LOGFILE" > "$LOGDIR/no_date_passed_${BOARD_SERIAL}_${RUN_TIMESTAMP}.log"
fi
cat /dev/null > "$LOGFILE"
console_ascii_passed
if [ $SYNCHRONIZATION -eq 0 ]; then
cat "$LOGFILE" > "$LOGDIR/passed_${BOARD_SERIAL}_${RUN_TIMESTAMP}.log"
else
cat "$LOGFILE" > "$LOGDIR/no_date_passed_${BOARD_SERIAL}_${RUN_TIMESTAMP}.log"
fi
cat /dev/null > "$LOGFILE"
fi
telemetry prod-logs-upload --tdir $LOGDIR
}
Expand Down

0 comments on commit b50903c

Please sign in to comment.