mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
tests: Add macro to common file.
get_log_next_line_num() was defined in alb.at. As it may be useful in other test files, move to ofproto-macros.at. Suggested-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
d56932aac6
commit
34ace16cb8
@ -2,10 +2,6 @@ AT_BANNER([PMD Auto Load Balance])
|
||||
|
||||
m4_divert_push([PREPARE_TESTS])
|
||||
|
||||
get_log_next_line_num () {
|
||||
LINENUM=$(($(cat ovs-vswitchd.log | wc -l | tr -d [[:blank:]])+1))
|
||||
}
|
||||
|
||||
m4_divert_pop([PREPARE_TESTS])
|
||||
|
||||
m4_define([DUMMY_NUMA], [--dummy-numa="0,0"])
|
||||
|
@ -265,6 +265,13 @@ check_logs () {
|
||||
/|EMER|/p" ${logs}
|
||||
}
|
||||
|
||||
# Gets the last line number in ovs-vswitchd.log +1. This can be used to
|
||||
# help ensure that an output in the log is newly written as the result of
|
||||
# a test command and it is not just matching an earlier log line.
|
||||
get_log_next_line_num () {
|
||||
LINENUM=$(($(cat ovs-vswitchd.log | wc -l | tr -d [[:blank:]])+1))
|
||||
}
|
||||
|
||||
# add_of_br BRNUM [ARG...]
|
||||
add_of_br () {
|
||||
local brnum=$1; shift
|
||||
|
Loading…
x
Reference in New Issue
Block a user