def verify_metadata_only(sbox):
    'verify metadata only'
    sbox.build(create_wc=False)
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir, '--metadata-only')
    if errput:
        raise SVNUnexpectedStderr(errput)
    if svntest.main.is_fs_log_addressing():
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', ['* Verifying metadata at revision 0 ...\n', '* Verifying repository metadata ...\n'], output)
    elif (svntest.main.fs_has_rep_sharing() and (not svntest.main.is_fs_type_bdb())):
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', ['* Verifying repository metadata ...\n'], output)
    else:
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', [], output)
verify metadata only
def verify_metadata_only(sbox):
    
    sbox.build(create_wc=False)
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', sbox.repo_dir, '--metadata-only')
    if errput:
        raise SVNUnexpectedStderr(errput)
    if svntest.main.is_fs_log_addressing():
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', ['* Verifying metadata at revision 0 ...\n', '* Verifying repository metadata ...\n'], output)
    elif (svntest.main.fs_has_rep_sharing() and (not svntest.main.is_fs_type_bdb())):
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', ['* Verifying repository metadata ...\n'], output)
    else:
        svntest.verify.compare_and_display_lines("Unexpected error while running 'svnadmin verify'.", 'STDOUT', [], output)