[ovs-dev] [PATCH] at test vlog: Switch from stderr to log

Paul Boca pboca at cloudbasesolutions.com
Wed Jun 8 15:50:38 UTC 2016


Acked-by: Paul-Daniel Boca <pboca at cloudbasesolutions.com>
Tested-by: Paul-Daniel Boca <pboca at cloudbasesolutions.com>

> -----Original Message-----
> From: dev [mailto:dev-bounces at openvswitch.org] On Behalf Of Alin Serdean
> Sent: Wednesday, June 8, 2016 5:02 PM
> To: dev at openvswitch.org
> Subject: [ovs-dev] [PATCH] at test vlog: Switch from stderr to log
> 
> Using the --detach parameter the child does not propagate the first
> message to the parent.
> 
> Proposed change use the log file instead of the stderr.
> 
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
> ---
>  tests/vlog.at | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/vlog.at b/tests/vlog.at
> index b793611..b96f394 100644
> --- a/tests/vlog.at
> +++ b/tests/vlog.at
> @@ -278,8 +278,9 @@ on_exit 'kill `cat test-unixctl.pid`'
>  AT_CAPTURE_FILE([log])
>  AT_CAPTURE_FILE([log.old])
>  AT_CHECK([ovstest test-unixctl --log-file=`pwd`/log --pidfile --detach],
> -  [0], [], [stderr])
> -AT_CHECK([vlog_filt stderr], [0], [opened log file
> +  [0], [], [ignore])
> +AT_CHECK([vlog_filt log], [0], [opened log file
> +Entering run loop.
>  ])
> 
>  AT_CHECK([APPCTL -t test-unixctl log message])
> @@ -355,8 +356,9 @@ on_exit 'kill `cat test-unixctl.pid`'
> 
>  AT_CAPTURE_FILE([log])
>  AT_CHECK([ovstest test-unixctl --log-file=`pwd`/log --pidfile --detach],
> -  [0], [], [stderr])
> -AT_CHECK([vlog_filt stderr], [0], [opened log file
> +  [0], [], [ignore])
> +AT_CHECK([vlog_filt log], [0], [opened log file
> +Entering run loop.
>  ])
> 
>  AT_CHECK([APPCTL -t test-unixctl vlog/list | sed -n '1,2p
> --
> 1.9.5.msysgit.0
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev


More information about the dev mailing list