diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-10-22 18:38:01 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-10-28 19:15:29 +0000 |
commit | a0c8195ad37292ab800a6c777fc28383995b4b64 (patch) | |
tree | 039f73a1546dfd238af4f89aef66789e0742eaf5 /tests/vty/vty_test.ok | |
parent | ea2afb21d69f5227263f6b227edcb1e9cc5b0e54 (diff) |
vty: Return error if cmd returns CMD_WARNING while reading cfg file
Otherwise bad configurations can easily sneak in and produce unexpected
behavior.
Change-Id: Ic9c1b566ec4a459f03e6319cf369691903cf9d00
Diffstat (limited to 'tests/vty/vty_test.ok')
-rw-r--r-- | tests/vty/vty_test.ok | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/vty/vty_test.ok b/tests/vty/vty_test.ok index 2f76ff91..0b5ac9c0 100644 --- a/tests/vty/vty_test.ok +++ b/tests/vty/vty_test.ok @@ -286,6 +286,10 @@ called level2 node k called level3 node k called level1 child cmd k got rc=0 +reading file fail_cmd_ret_warning.cfg, expecting rc=-22 +Called: 'return-success' +Called: 'return-warning' +got rc=-22 Going to test is_cmd_ambiguous() Going to execute 'ambiguous_nr' Called: 'ambiguous_nr [<0-23>]' (argc=0) |