Merge pull request #6774 from ThomasWaldmann/fix-selftest-count-borg2

borg2: misc small fixes
This commit is contained in:
TW 2022-06-14 16:57:26 +02:00 committed by GitHub
commit 9e5062c015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 6 deletions

View File

@ -16,7 +16,7 @@ on:
- 'requirements.d/*'
- '!docs/**'
pull_request:
branches: [ master ]
branches: [ master, borg2 ]
paths:
- '**.py'
- '**.pyx'

View File

@ -1356,7 +1356,7 @@ class Archiver:
tarinfo.uid = item.uid
tarinfo.gid = item.gid
tarinfo.uname = item.get('user', '')
tarinfo.gname = item.get('group', '')
tarinfo.gname = item.get('group', '')
# The linkname in tar has 2 uses:
# for symlinks it means the destination, while for hardlinks it refers to the file.
# Since hardlinks in tar have a different type code (LNKTYPE) the format might

View File

@ -1,5 +1,4 @@
import configparser
import json
import os
import shutil
import stat
@ -655,8 +654,6 @@ class LocalCache(CacheStatsMixin):
archive indexes.
"""
archive_path = os.path.join(self.path, 'chunks.archive.d')
# An index of chunks whose size had to be fetched
chunks_fetched_size_index = ChunkIndex()
# Instrumentation
processed_item_metadata_bytes = 0
processed_item_metadata_chunks = 0

View File

@ -33,7 +33,7 @@ SELFTEST_CASES = [
ChunkerTestCase,
]
SELFTEST_COUNT = 37
SELFTEST_COUNT = 38
class SelfTestResult(TestResult):