From 3430984652e7320719a29b2d8e588fa6636fbffc Mon Sep 17 00:00:00 2001 From: Thomas Vachuska Date: Thu, 23 Apr 2015 15:06:14 -0700 Subject: [PATCH] Changed onos-log to allow for both Linux & Darwin (OSX) platforms to work. The --pid option is required in order for tail to wake-up when the owning process dies. Change-Id: Ifb86517b0abfe1d781b15408e3619deacfeb2523 --- tools/test/bin/onos-log | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/bin/onos-log b/tools/test/bin/onos-log index 6e1d1424b4..fe89f6dd85 100755 --- a/tools/test/bin/onos-log +++ b/tools/test/bin/onos-log @@ -31,7 +31,8 @@ else while true; do echo ================================================================== [ ! -f $LOG ] && sleep 2 && continue - tail -n 512 -f -F $LOG + [ \$(uname) = "Darwin" ] && tail -n 512 -f -F $LOG || + tail -n 512 --follow=name $LOG --pid \$$ --sleep-interval 2 done " fi