[ovs-dev] [PATCH v2 2/2] tests/ovs-vsctl.at: Add test to the arguments validation

Alexey Roytman aroytman at gmail.com
Sun Mar 28 21:50:56 UTC 2021


From: Alexey Roytman <roytman at il.ibm.com>

Signed-off-by: Alexey Roytman <roytman at il.ibm.com>
---
 tests/ovs-vsctl.at | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at
index d2cb41403..6fbe6da49 100644
--- a/tests/ovs-vsctl.at
+++ b/tests/ovs-vsctl.at
@@ -1483,6 +1483,11 @@ AT_CHECK([RUN_OVS_VSCTL(
 
 qos                 : []
 ]])
+AT_CHECK([RUN_OVS_VSCTL(
+   [ destroy Qos])], [0],[], [stderr])
+AT_CHECK([sed "s/^.*|WARN|//" < stderr], [0],
+[[either --all or records argument should be specified
+]]) 
 AT_CHECK([RUN_OVS_VSCTL(
    [--all destroy Qos])])
 AT_CHECK([RUN_OVS_VSCTL(
-- 
2.25.1



More information about the dev mailing list