mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
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@cloudbasesolutions.com> Acked-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com> Tested-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com> Acked-by: Ryan Moats <rmoats@us.ibm.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user