osmo-python-tests.git branch master updated. 48b951a7a6057f8072dbb17a5315a518d5d5112e

gitosis at osmocom.org gitosis at osmocom.org
Wed Nov 29 17:33:08 UTC 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".

The branch, master has been updated
       via  48b951a7a6057f8072dbb17a5315a518d5d5112e (commit)
      from  751491cdf9fba3a46911ac46bf0f640588bec286 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cgit.osmocom.org/python/osmo-python-tests/commit/?id=48b951a7a6057f8072dbb17a5315a518d5d5112e

commit 48b951a7a6057f8072dbb17a5315a518d5d5112e
Author: Neels Hofmeyr <neels at hofmeyr.de>
Date:   Wed Nov 29 18:21:18 2017 +0100

    osmo_interact_common: add '... !regex' wildcard
    
    Sometimes it is desirable to match any lines, just make sure that a given regex
    does *not* exist in the command reply.
    
    For example, during handover config tests, to verify that no handover config
    exists, one would have to match an entire 'show running-config' output, which
    is subject to change whenever the VTY changes.
    
    Add a wildcard '... !' which allows passing a regex that must not be
    encountered, e.g.:
    
      OsmoBSC(config-net)# show running-config
      ...
      network
      ... !handover
       bts 0
      ...
        handover 1
      ...
    
    This checks that there is no handover config on the network level while bts 0
    does have handover config.
    
    Change-Id: I7c1ebb2e7f059047903a53de26a0ec1ce7fa9b98

-----------------------------------------------------------------------

Summary of changes:
 osmopy/osmo_interact_common.py | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT


More information about the osmocom-commitlog mailing list