Skip to content

to be root or not to be root... #2705

@ThomasWaldmann

Description

@ThomasWaldmann

just noticed on the wheezy64 vm:

(borg-env) vagrant@vagrant:/vagrant/borg/borg$ fakeroot -u tox -e py36
GLOB sdist-make: /vagrant/borg/borg/setup.py
py36 inst-nodeps: /vagrant/borg/borg/.tox/dist/borgbackup-1.1.0b6.zip
py36 installed: The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,apipkg==1.4,borgbackup==1.1.0b6,coverage==4.4.1,Cython==0.25.2,execnet==1.4.1,llfuse==1.2,msgpack-python==0.4.8,pluggy==0.4.0,py==1.4.34,pytest==3.1.2,pytest-benchmark==3.0.0,pytest-cov==2.5.1,pytest-xdist==1.17.1,setuptools-scm==1.15.6,tox==2.7.0,virtualenv==15.1.0
py36 runtests: PYTHONHASHSEED='1851681041'
py36 runtests: commands[0] | py.test -n 4 -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs borg.testsuite
============================= test session starts ==============================
platform linux -- Python 3.6.0, pytest-3.1.2, py-1.4.34, pluggy-0.4.0
benchmark: 3.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=5.00us max_time=1.00s calibration_precision=10 warmup=False warmup_iterations=100000)
Tests enabled: BSD flags, fuse, symlinks, hardlinks, atime/mtime, modes
Tests disabled: root
rootdir: /vagrant/borg/borg, inifile: setup.cfg
plugins: xdist-1.17.1, cov-2.5.1, benchmark-3.0.0
gw0 [1331] / gw1 [1331] / gw2 [1331] / gw3 [1331]
scheduling tests via LoadScheduling
..............................s.s................................................................s......................s..............................................X...................s...................................s............s.......s......................s........X.....................................................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssss.sssssssssssssssssssssssssssssssssssssssssss........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s.sss.s..............................................................................................................................................................................................................................................................................X.s.....................s..............s...............................................Coverage.py warning: Module borg was previously imported, but not measured. (module-not-measured)
Coverage.py warning: Module borg was previously imported, but not measured. (module-not-measured)
.Coverage.py warning: Module borg was previously imported, but not measured. (module-not-measured)
.Coverage.py warning: Module borg was previously imported, but not measured. (module-not-measured)


----------- coverage: platform linux, python 3.6.0-final-0 -----------
Name                                                                  Stmts   Miss Branch BrPart  Cover
-------------------------------------------------------------------------------------------------------
.tox/py36/lib/python3.6/site-packages/borg/algorithms/__init__.py         0      0      0      0   100%
.tox/py36/lib/python3.6/site-packages/borg/archive.py                  1259    165    497     76    85%
.tox/py36/lib/python3.6/site-packages/borg/archiver.py                 1775    223    627     85    86%
.tox/py36/lib/python3.6/site-packages/borg/cache.py                     727     66    187     29    89%
.tox/py36/lib/python3.6/site-packages/borg/constants.py                  23      0      0      0   100%
.tox/py36/lib/python3.6/site-packages/borg/crypto/__init__.py             0      0      0      0   100%
.tox/py36/lib/python3.6/site-packages/borg/crypto/file_integrity.py     145      2     28      0    99%
.tox/py36/lib/python3.6/site-packages/borg/crypto/key.py                532     38    112     21    90%
.tox/py36/lib/python3.6/site-packages/borg/crypto/keymanager.py         166     66     42      4    58%
.tox/py36/lib/python3.6/site-packages/borg/crypto/nonces.py              56      1     16      2    96%
.tox/py36/lib/python3.6/site-packages/borg/helpers.py                  1202    125    437     45    88%
.tox/py36/lib/python3.6/site-packages/borg/locking.py                   234     21     84      9    89%
.tox/py36/lib/python3.6/site-packages/borg/logger.py                    116     25     36      9    78%
.tox/py36/lib/python3.6/site-packages/borg/lrucache.py                   39      0      6      0   100%
.tox/py36/lib/python3.6/site-packages/borg/nanorst.py                   159     13     62      6    89%
.tox/py36/lib/python3.6/site-packages/borg/patterns.py                  192      8     46      5    95%
.tox/py36/lib/python3.6/site-packages/borg/platform/__init__.py          19      4      4      1    70%
.tox/py36/lib/python3.6/site-packages/borg/platform/base.py              85     20      8      3    73%
.tox/py36/lib/python3.6/site-packages/borg/remote.py                    606     78    261     42    84%
.tox/py36/lib/python3.6/site-packages/borg/repository.py                937     75    340     42    90%
.tox/py36/lib/python3.6/site-packages/borg/selftest.py                   42      7     10      4    79%
.tox/py36/lib/python3.6/site-packages/borg/shellpattern.py               36      0     22      0   100%
.tox/py36/lib/python3.6/site-packages/borg/upgrader.py                  168     54     52     12    61%
.tox/py36/lib/python3.6/site-packages/borg/version.py                    26     11      8      0    56%
.tox/py36/lib/python3.6/site-packages/borg/xattr.py                     200     79     68      9    57%
-------------------------------------------------------------------------------------------------------
TOTAL                                                                  8744   1081   2953    404    86%

=========================== short test summary info ============================
SKIP [2] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:169: needs a 16MB fs mounted on /tmp/borg-mount
SKIP [3] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:1166: xattr not supported on this system or on this version offakeroot
SKIP [3] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:1145: Linux capabilities test, requires fakeroot >= 1.20.2
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:2648: test_basic_functionality seems incompatible with fakeroot and/or the binary.
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:2644: patches objects
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:2652: test_overwrite seems incompatible with fakeroot and/or the binary.
SKIP [98] /vagrant/borg/borg/.tox/py36/lib/python3.6/site-packages/pytest_benchmark/plugin.py:1053: Benchmarks are skipped (--benchmark-skip was used).
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/platform.py:89: not compatible with fakeroot
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/platform.py:102: not compatible with fakeroot
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/platform.py:109: not compatible with fakeroot
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/platform.py:140: not compatible with fakeroot
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/platform.py:167: OS X only test
SKIP [1] .tox/py36/lib/python3.6/site-packages/borg/testsuite/archiver.py:3017: only works locally
============ 1213 passed, 115 skipped, 3 xpassed in 635.84 seconds =============
___________________________________ summary ____________________________________
  py36: commands succeeded
  congratulations :)

Notice: I used fakeroot and it said "tests disabled: root".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions