diff options
author | Alexey Roytman <roytman@il.ibm.com> | 2021-03-29 00:50:55 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2021-03-30 15:47:49 -0700 |
commit | 50b0b4d866584030217cb2c26cd41ef42cb4990b (patch) | |
tree | cef6ca8938f7eee0af1347ac6660ea181d251327 /tests/ovs-vsctl.at | |
parent | 9801d7c4b8e71df56c439c06f8bab8b74cab5248 (diff) | |
download | openvswitch-50b0b4d866584030217cb2c26cd41ef42cb4990b.tar.gz |
db-ctl-base: Warn if "destroy" command lacks --all or record argument.
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/ovs-vsctl.at')
-rw-r--r-- | tests/ovs-vsctl.at | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at index d2cb41403..8f7916037 100644 --- a/tests/ovs-vsctl.at +++ b/tests/ovs-vsctl.at @@ -1484,6 +1484,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( [-- list Qos])]) |