blob: 2f90a55e5badc1e13e3c9f029490ac6361124320 [file] [log] [blame]
Jon Hallef822822016-02-19 10:36:47 -08001#!/bin/bash
2
3set -e -o pipefail
4
5if [ "$#" -lt 1 ]; then
6 file="DemoCode"
7elif [ "$1" = "-s" ]; then
8 file="DemoSummary"
9else
10 printf "usage: $(basename $0) [options]\n\n"
11 printf "Simple command to print the latest test summary file.\n"
12 printf "\noptions:\n\t--help : Displays this message and exits\n"
13 printf "\t-f : Tails the summary file and updates as the file is written to.\n\n"
14 exit 1
15fi
16ls -t ~/OnosSystemTest/TestON/logs/*/*${file}.txt | head -1 | xargs tail -n+1 -f
17exit 0