def pytest_report_header(config, startdir): yesno = ['no', 'yes'] flags = 'Testing BSD-style flags: %s %s' % (yesno[has_lchflags], no_lchlfags_because) fakeroot = 'fakeroot: %s (>=1.20.2: %s)' % (yesno[fakeroot_detected()], yesno[xattr.XATTR_FAKEROOT]) llfuse = 'Testing fuse: %s' % yesno[has_llfuse] return '\n'.join((flags, llfuse, fakeroot))
def pytest_report_header(config, startdir): yesno = ['no', 'yes'] flags = 'Testing BSD-style flags: %s %s' % (yesno[has_lchflags], no_lchlfags_because) fakeroot = 'fakeroot: %s (>=1.20.2: %s)' % ( yesno[fakeroot_detected()], yesno[xattr.XATTR_FAKEROOT]) llfuse = 'Testing fuse: %s' % yesno[has_llfuse] return '\n'.join((flags, llfuse, fakeroot))
def pytest_report_header(config, startdir): tests = { "BSD flags": has_lchflags, "fuse": has_llfuse, "root": not fakeroot_detected(), "symlinks": are_symlinks_supported(), "hardlinks": are_hardlinks_supported(), "atime/mtime": is_utime_fully_supported(), "modes": "BORG_TESTS_IGNORE_MODES" not in os.environ } enabled = [] disabled = [] for test in tests: if tests[test]: enabled.append(test) else: disabled.append(test) output = "Tests enabled: " + ", ".join(enabled) + "\n" output += "Tests disabled: " + ", ".join(disabled) return output
def pytest_report_header(config, startdir): yesno = ["no", "yes"] flags = "Testing BSD-style flags: %s %s" % (yesno[has_lchflags], no_lchlfags_because) fakeroot = "fakeroot: %s (>=1.20.2: %s)" % (yesno[fakeroot_detected()], yesno[xattr.XATTR_FAKEROOT]) llfuse = "Testing fuse: %s" % yesno[has_llfuse] return "\n".join((flags, llfuse, fakeroot))