def patch_libs(directory, libdir):

    so_re = re.compile('.*\.so(\.\d+)*$')

    for root, dirs, files in os.walk(directory):
        for f in files:
            # Skip the interpreter
            if f.startswith('ld-'):
                continue
            if so_re.match(f):
                fname = root + '/' + f
                print "Patching %s" % fname
                patch_binary.patch_binary(fname, libdir)
Check that the diagnostics dictionary is returned correctly on success
dataset/ETHPy150Open rackerlabs/openstack-guest-agents-unix/patch_libs.py/patch_libs--crossover with--dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_system.py/TestSystemDiagnostics.test_diagnostics_pass