Re: [ovs-dev] [PATCH ovn] tests: Fix incorrect 'check_engine_stats' helper function.
On Fri, Feb 2, 2024 at 5:23 PM Mark Michelson wrote: > > Acked-by: Mark Michelson Thanks. Applied to main. Numan > > On 2/2/24 16:57, num...@ovn.org wrote: > > From: Numan Siddique > > > > The patch which added the helper function 'check_engine_stats' > > didn't add it properly because of which we are seeing the below > > warnings. > > > > test-source: line 2187: check_engine_stats: command not found > > > > This patch fixes it by using m4_divert_push/m4_divert_pop macros. > > > > Fixes: c69119ca3b59 ("tests: Add a couple of tests in ovn-northd for I-P.") > > > > Signed-off-by: Numan Siddique > > --- > > tests/ovn-northd.at | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at > > index 5c597eb1ce..817defdd67 100644 > > --- a/tests/ovn-northd.at > > +++ b/tests/ovn-northd.at > > @@ -36,6 +36,7 @@ m4_define([CHECK_NO_CHANGE_AFTER_RECOMPUTE], [ > > ]) > > ]) > > > > +m4_divert_push([PREPARE_TESTS]) > > # Checks if the provided engine node recomputed or not > > # and if it computed or not. > > # 1st argument is the engine node. > > @@ -79,6 +80,7 @@ $recompute : compute - $compute" > > check test "$node_compute_ct" -ne "0" > > fi > > } > > +m4_divert_pop([PREPARE_TESTS]) > > > > OVN_FOR_EACH_NORTHD_NO_HV([ > > AT_SETUP([check from NBDB to SBDB]) > > ___ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH ovn] tests: Fix incorrect 'check_engine_stats' helper function.
Acked-by: Mark Michelson On 2/2/24 16:57, num...@ovn.org wrote: From: Numan Siddique The patch which added the helper function 'check_engine_stats' didn't add it properly because of which we are seeing the below warnings. test-source: line 2187: check_engine_stats: command not found This patch fixes it by using m4_divert_push/m4_divert_pop macros. Fixes: c69119ca3b59 ("tests: Add a couple of tests in ovn-northd for I-P.") Signed-off-by: Numan Siddique --- tests/ovn-northd.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at index 5c597eb1ce..817defdd67 100644 --- a/tests/ovn-northd.at +++ b/tests/ovn-northd.at @@ -36,6 +36,7 @@ m4_define([CHECK_NO_CHANGE_AFTER_RECOMPUTE], [ ]) ]) +m4_divert_push([PREPARE_TESTS]) # Checks if the provided engine node recomputed or not # and if it computed or not. # 1st argument is the engine node. @@ -79,6 +80,7 @@ $recompute : compute - $compute" check test "$node_compute_ct" -ne "0" fi } +m4_divert_pop([PREPARE_TESTS]) OVN_FOR_EACH_NORTHD_NO_HV([ AT_SETUP([check from NBDB to SBDB]) ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
[ovs-dev] [PATCH ovn] tests: Fix incorrect 'check_engine_stats' helper function.
From: Numan Siddique The patch which added the helper function 'check_engine_stats' didn't add it properly because of which we are seeing the below warnings. test-source: line 2187: check_engine_stats: command not found This patch fixes it by using m4_divert_push/m4_divert_pop macros. Fixes: c69119ca3b59 ("tests: Add a couple of tests in ovn-northd for I-P.") Signed-off-by: Numan Siddique --- tests/ovn-northd.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at index 5c597eb1ce..817defdd67 100644 --- a/tests/ovn-northd.at +++ b/tests/ovn-northd.at @@ -36,6 +36,7 @@ m4_define([CHECK_NO_CHANGE_AFTER_RECOMPUTE], [ ]) ]) +m4_divert_push([PREPARE_TESTS]) # Checks if the provided engine node recomputed or not # and if it computed or not. # 1st argument is the engine node. @@ -79,6 +80,7 @@ $recompute : compute - $compute" check test "$node_compute_ct" -ne "0" fi } +m4_divert_pop([PREPARE_TESTS]) OVN_FOR_EACH_NORTHD_NO_HV([ AT_SETUP([check from NBDB to SBDB]) -- 2.43.0 ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev