]> arthur.barton.de Git - bup.git/blobdiff - wvtest.py
Add bup get; see the documentation for further information
[bup.git] / wvtest.py
index 2f48ef62acfa56a4cfdd850095f7d76b4c54ea29..8b5ab647e47e270caccbd67c31789211b32f6ce8 100755 (executable)
--- a/wvtest.py
+++ b/wvtest.py
@@ -86,6 +86,14 @@ if __name__ != '__main__':   # we're imported as a module
             _result(msg, tb, 'FAILED')
         return cond
 
+    def wvcheck(cond, msg, tb = None):
+        if tb == None: tb = _caller_stack(2)
+        if cond:
+            _result(msg, tb, 'ok')
+        else:
+            _result(msg, tb, 'FAILED')
+        return cond
+
     _code_rx = re.compile(r'^\w+\((.*)\)(\s*#.*)?$')
     def _code():
         text = _caller_stack(2)[3]