def verify_rcz(cmd, **kwargs): assert not kwargs.get('check') kwargs['check'] = False result = exo(cmd, **kwargs) stdout.write(result.out) rc = result.proc.returncode wvcheck(rc == 0, 'process exit %d == 0' % rc) return result
def verify_nrx(rx, string): wvcheck(not re.search(rx, string), "rx %r doesn't match %r" % (rx, string))
def verify_rx(rx, string): wvcheck(re.search(rx, string), 'rx %r matches %r' % (rx, string))
def verify_trees_match(path1, path2): global top exr = exo((top + b'/dev/compare-trees', b'-c', path1, path2), check=False) stdout.write(exr.out) sys.stdout.flush() wvcheck(exr.rc == 0, 'process exit %d == 0' % exr.rc)