Re: [s3ql] Tests fail on OS X

2016-10-03 Thread Nikolaus Rath
On Sep 30 2016, Tobias Ammann  wrote:
> Hello,
>
> I tried installing S3QL on my OS X 10.11.6 El Capitan with FUSE for
> macOS 3.5.2 today. When I ran the tests they failed in various places
> (see attached error logs). Another error (no log) mentioned
> /usr/bin/sudo, thus I also ran the tests under sudo.
>
> I followed:
> http://www.rath.org/s3ql-docs/installation.html
>
[...]
> tests/t4_fuse.py::TestFuse::test FAILED
[...]
> Traceback (most recent call last):
>   File "/Users/ta/Downloads/s3ql-2.20/bin/mount.s3ql", line 26, in 
> s3ql.mount.main(sys.argv[1:])
>   File "/Users/ta/Downloads/s3ql-2.20/src/s3ql/mount.py", line 219, in main
> operations.destroy()
>   File "/Users/ta/Downloads/s3ql-2.20/src/s3ql/fs.py", line 120, in destroy
> self.forget(list(self.open_inodes.items()))
>   File "/Users/ta/Downloads/s3ql-2.20/src/s3ql/fs.py", line 1168, in forget
> inode = self.inodes[id_]
>   File "/Users/ta/Downloads/s3ql-2.20/src/s3ql/inode_cache.py", line 163, in 
> __getitem__
> raise KeyError('No such inode: %d' % id_)
> KeyError: 'No such inode: 4'

This looks like a bug, thanks for the report! Could you please report it at
https://bitbucket.org/nikratio/s3ql/issues so that I don't forget about
it?


I'm surprised that it works as root. Are you sure that this wasn't just
a coincidence (in other words, if you run the test a few times it also
sometimes works as a regular user, and it sometimes fails as root)?


> - Captured stderr call 
> -
> WARNING: Maximum object sizes less than 1 MiB will degrade performance.
> rsync: -aHAX: unknown option
> rsync error: syntax or usage error (code 1) at
> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(1333)
> [client=2.6.9]

Apparently OS X rsync doesn't know the same options as standard
rsync. Could you find out which of the options (-a, -H, -A or -x) it
does not like?


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[s3ql] Tests fail on OS X

2016-10-03 Thread Tobias Ammann
Hello,

I tried installing S3QL on my OS X 10.11.6 El Capitan with FUSE for macOS 3.5.2 
today. When I ran the tests they failed in various places (see attached error 
logs). Another error (no log) mentioned /usr/bin/sudo, thus I also ran the 
tests under sudo.

I followed:
http://www.rath.org/s3ql-docs/installation.html


Cheers,
Tobias



-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
= test session starts ==
platform darwin -- Python 3.5.2, pytest-3.0.3, py-1.4.31, pluggy-0.4.0 -- 
/usr/local/opt/python3/bin/python3.5
cachedir: tests/.cache
rootdir: /Users/ta/Downloads/s3ql-2.20/tests, inifile: pytest.ini
plugins: catchlog-1.2.2
collecting ... collected 276 items

tests/t1_backends.py::test_read_write[local/aes] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/aes] PASSED
tests/t1_backends.py::test_read_write[mock-gs/aes] PASSED
tests/t1_backends.py::test_read_write[local/aes+zlib] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/aes+zlib] PASSED
tests/t1_backends.py::test_read_write[mock-gs/aes+zlib] PASSED
tests/t1_backends.py::test_read_write[local/plain] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/plain] PASSED
tests/t1_backends.py::test_read_write[mock-gs/plain] PASSED
tests/t1_backends.py::test_read_write[local/zlib] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/zlib] PASSED
tests/t1_backends.py::test_read_write[mock-gs/zlib] PASSED
tests/t1_backends.py::test_read_write[local/bzip2] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/bzip2] PASSED
tests/t1_backends.py::test_read_write[mock-gs/bzip2] PASSED
tests/t1_backends.py::test_read_write[local/lzma] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/lzma] PASSED
tests/t1_backends.py::test_read_write[mock-gs/lzma] PASSED
tests/t1_backends.py::test_read_write[local/raw] PASSED
tests/t1_backends.py::test_read_write[mock-s3c/raw] PASSED
tests/t1_backends.py::test_read_write[mock-gs/raw] PASSED
tests/t1_backends.py::test_issue114[backend0] SKIPPED
tests/t1_backends.py::test_complex_meta[local/raw] PASSED
tests/t1_backends.py::test_complex_meta[mock-s3c/raw] PASSED
tests/t1_backends.py::test_complex_meta[mock-gs/raw] PASSED
tests/t1_backends.py::test_complex_meta[local/plain] PASSED
tests/t1_backends.py::test_complex_meta[local/aes] PASSED
tests/t1_backends.py::test_complex_meta[local/zlib] PASSED
tests/t1_backends.py::test_list[local/aes] PASSED
tests/t1_backends.py::test_list[mock-s3c/aes] PASSED
tests/t1_backends.py::test_list[mock-gs/aes] PASSED
tests/t1_backends.py::test_readslowly[local/raw] PASSED
tests/t1_backends.py::test_readslowly[mock-s3c/raw] PASSED
tests/t1_backends.py::test_readslowly[mock-gs/raw] PASSED
tests/t1_backends.py::test_readslowly[local/plain] PASSED
tests/t1_backends.py::test_readslowly[local/aes] PASSED
tests/t1_backends.py::test_readslowly[local/zlib] PASSED
tests/t1_backends.py::test_readslowly[local/aes+zlib] PASSED
tests/t1_backends.py::test_delete[local/aes] PASSED
tests/t1_backends.py::test_delete[mock-s3c/aes] PASSED
tests/t1_backends.py::test_delete[mock-gs/aes] PASSED
tests/t1_backends.py::test_delete_multi[local/aes] PASSED
tests/t1_backends.py::test_delete_multi[mock-s3c/aes] PASSED
tests/t1_backends.py::test_delete_multi[mock-gs/aes] PASSED
tests/t1_backends.py::test_clear[local/aes] PASSED
tests/t1_backends.py::test_clear[mock-s3c/aes] PASSED
tests/t1_backends.py::test_clear[mock-gs/aes] PASSED
tests/t1_backends.py::test_copy[local/raw] PASSED
tests/t1_backends.py::test_copy[mock-s3c/raw] PASSED
tests/t1_backends.py::test_copy[mock-gs/raw] PASSED
tests/t1_backends.py::test_copy[local/plain] PASSED
tests/t1_backends.py::test_copy[local/aes] PASSED
tests/t1_backends.py::test_copy[local/zlib] PASSED
tests/t1_backends.py::test_copy_special[local/raw] PASSED
tests/t1_backends.py::test_copy_special[mock-s3c/raw] PASSED
tests/t1_backends.py::test_copy_special[mock-gs/raw] PASSED
tests/t1_backends.py::test_copy_newmeta[local/raw] PASSED
tests/t1_backends.py::test_copy_newmeta[mock-s3c/raw] PASSED
tests/t1_backends.py::test_copy_newmeta[mock-gs/raw] PASSED
tests/t1_backends.py::test_copy_newmeta[local/aes] PASSED
tests/t1_backends.py::test_copy_newmeta[local/zlib] PASSED
tests/t1_backends.py::test_rename[local/raw] PASSED
tests/t1_backends.py::test_rename[mock-s3c/raw] PASSED
tests/t1_backends.py::test_rename[mock-gs/raw] PASSED
tests/t1_backends.py::test_rename[local/aes] PASSED
tests/t1_backends.py::test_rename[local/zlib] PASSED
tests/t1_backends.py::test_rename_newmeta[local/raw] PASSED
tests/t1_backends.py::test_rename_newmeta[mock-s3c/raw] PASSED
tests/t1_backends.py::test_rename_newmeta[mock-gs/raw] PASSED
tests/t1_backends.py::test_rename_newmeta[local/aes] PASSED