This patch is a preparation for a patch testing upgrades.
It defines a tag (TAG_TEST_NOT_UPGRADABLE) which can be added
to tests for which upgrade tests would fail.

This is a pre-requisite for upgrade test patch [1].
When upgrade tests (from [1]) are run, tests tagged (in the
base/old branch) with TAG_TEST_NOT_UPGRADABLE will be skipped.

This patch will be custom-backported to branch-25.09, with the
tag set in the test(s) failing in upgrade tests.

[1] ci: Run system tests in upgrade scenario

Signed-off-by: Xavier Simonart <[email protected]>
---
 tests/ovn-macros.at | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at
index 1c981e5a8..834ed60be 100644
--- a/tests/ovn-macros.at
+++ b/tests/ovn-macros.at
@@ -1520,6 +1520,12 @@ m4_define([TAG_UNSTABLE], [
     AT_SKIP_IF([test X"$SKIP_UNSTABLE" = Xyes])
 ])
 
+# TAG_TEST_NOT_UPGRADABLE tag indicates that the test would fail
+# "upgrade" test (i.e. running old ovn-northd and new ovn-controller)
+m4_define([TAG_TEST_NOT_UPGRADABLE], [
+    AT_SKIP_IF([test X"$UPGRADE_TEST" = Xyes])
+])
+
 m4_define([OVN_CHECK_SCAPY_EDNS_CLIENT_SUBNET_SUPPORT],
 [
     AT_SKIP_IF([test $HAVE_SCAPY = no])
-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to