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 b50903c commit ab2b6e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main_tests/lib/production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,22 @@ production() {
fi

if [ "$FAILED" == "0" ] ; then
<<<<<<< HEAD
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"
=======
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"
>>>>>>> 74fb9fc... prod: tests common: add support for remote logging
fi
telemetry prod-logs-upload --tdir $LOGDIR
}
Expand Down

0 comments on commit ab2b6e1

Please sign in to comment.