@SkipUnless(svntest.main.is_fs_type_bdb)
def hotcopy_format(sbox):
    "'svnadmin hotcopy' checking db/format file"
    sbox.build()
    (backup_dir, backup_url) = sbox.add_repo_path('backup')
    (exit_code, output, errput) = svntest.main.run_svnadmin('hotcopy', sbox.repo_dir, backup_dir)
    if errput:
        logger.warn('Error: hotcopy failed')
        raise svntest.Failure
    fp = open(os.path.join(sbox.repo_dir, 'db', 'format'))
    contents1 = fp.read()
    fp.close()
    fp2 = open(os.path.join(backup_dir, 'db', 'format'))
    contents2 = fp2.read()
    fp2.close()
    if (contents1 != contents2):
        logger.warn('Error: db/format file contents do not match after hotcopy')
        raise svntest.Failure
'svnadmin hotcopy' checking db/format file
@SkipUnless(svntest.main.is_fs_type_bdb)
def hotcopy_format(sbox):
    
    sbox.build()
    (backup_dir, backup_url) = sbox.add_repo_path('backup')
    (exit_code, output, errput) = svntest.main.run_svnadmin('hotcopy', sbox.repo_dir, backup_dir)
    if errput:
        logger.warn('Error: hotcopy failed')
        raise svntest.Failure
    fp = open(os.path.join(sbox.repo_dir, 'db', 'format'))
    contents1 = fp.read()
    fp.close()
    fp2 = open(os.path.join(backup_dir, 'db', 'format'))
    contents2 = fp2.read()
    fp2.close()
    if (contents1 != contents2):
        logger.warn('Error: db/format file contents do not match after hotcopy')
        raise svntest.Failure