gvfs tests fail early
I tried to run the gvfs tests from current git as my normal user, and it didn't work.
It would be very useful if gvfs could start its own dbus-daemon rather than relying on a specially configured session to work.
Click to expand
$ gnome-desktop-testing-runner gvfs/gvfs-all-tests.test
Running test: gvfs/gvfs-all-tests.test
test_api (__main__.ArchiveMounter)
archive:// with Gio API ... FAIL
----- dbus stdout -----
----- dbus stderr -----
avc: could not determine enforcing mode: No such file or directory
dbus-daemon[1288875]: Failed to start message bus: Failed to start Access Vector Cache (AVC): No such file or directory
test_iso_joliet (__main__.ArchiveMounter)
archive:// for Joliet .iso ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmp1m3m5bnq%252Fjoliet.iso: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
test_iso_rr (__main__.ArchiveMounter)
archive:// for RockRidge .iso ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmpbw6k5twf%252Fbogus-cd.iso: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
test_tar (__main__.ArchiveMounter)
archive:// for tar ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmp8yd2d_gi%252Fstuff.tar: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
test_tar_bz2 (__main__.ArchiveMounter)
archive:// for tar.bz2 ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmp0l3sfk2n%252Fstuff.tar.bz2: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
test_tar_gz (__main__.ArchiveMounter)
archive:// for tar.gz ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmph6nhnksz%252Fstuff.tar.gz: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
test_zip (__main__.ArchiveMounter)
archive:// for .zip ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: archive://file%253A%252F%252F%252Ftmp%252Ftmpdifbn6le%252Fstuff.zip: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
[no apxs2, falling back]
AH00526: Syntax error on line 22 of /tmp/tmpsj27xtep/apache2.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
ERROR
test_cdrom (__main__.Drive)
drive mount: cdrom ... skipped 'not running under gvfs-testbed'
test_cdrom_api (__main__.Drive)
drive mount: cdrom with Gio API ... skipped 'not running under gvfs-testbed'
test_media_player (__main__.Drive)
drive mount: media player ... skipped 'not running under gvfs-testbed'
test_system_partition (__main__.Drive)
drive mount: system partition ... skipped 'not running under gvfs-testbed'
test_system_partition_api (__main__.Drive)
drive mount: system partition with Gio API ... skipped 'not running under gvfs-testbed'
test_anonymous_api_flag (__main__.Ftp)
ftp:// anonymous (API with flag) ... skipped 'Twisted twistd not installed'
test_anonymous_api_user (__main__.Ftp)
ftp:// anonymous (API with user) ... skipped 'Twisted twistd not installed'
test_anonymous_cli_option (__main__.Ftp)
ftp:// anonymous (CLI with option) ... skipped 'Twisted twistd not installed'
test_anonymous_cli_user (__main__.Ftp)
ftp:// anonymous (CLI with user) ... skipped 'Twisted twistd not installed'
test_authenticated_api (__main__.Ftp)
ftp:// authenticated (API) ... skipped 'Twisted twistd not installed'
test_authenticated_cli (__main__.Ftp)
ftp:// authenticated (CLI) ... skipped 'Twisted twistd not installed'
test_mount_api (__main__.GPhoto)
gphoto2:// mount with Gio API ... FAIL
----- dbus stdout -----
----- dbus stderr -----
test_rsa (__main__.Sftp)
sftp://localhost with RSA authentication ... Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
Error creating proxy: Could not connect: Connection refused (g-io-error-quark, 39)
gio: sftp://localhost:22222: volume doesn?t implement mount
ERROR
----- dbus stdout -----
----- dbus stderr -----
----- sshd log -----
/tmp/tmpc0wxg__0/sshd_config line 3: Deprecated option UsePrivilegeSeparation
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
debug1: sshd version OpenSSH_8.8, OpenSSL 3.0.3 3 May 2022
------
test_unknown_host (__main__.Sftp)
sftp:// with RSA authentication for unknown host ... skipped 'not running under gvfs-testbed'
test_anonymous (__main__.Smb)
smb:// anonymous ... skipped 'Samba smbd not installed'
test_authenticated (__main__.Smb)
smb:// authenticated ... skipped 'Samba smbd not installed'
test_deletion_with_same_path (__main__.Trash)
trash:// deletion of two files with the same path ... ERROR
----- dbus stdout -----
----- dbus stderr -----
test_file_in_home_api (__main__.Trash)
trash:// deletion, attributes, restoring for a file in $HOME (API) ... ERROR
----- dbus stdout -----
----- dbus stderr -----
test_file_in_home_cli (__main__.Trash)
trash:// deletion, attributes, restoring for a file in $HOME (CLI) ... ERROR
----- dbus stdout -----
----- dbus stderr -----
test_file_in_system (__main__.Trash)
trash:// deletion for system location ... ERROR
----- dbus stdout -----
----- dbus stderr -----
======================================================================
ERROR: test_iso_joliet (__main__.ArchiveMounter)
archive:// for Joliet .iso
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 389, in test_iso_joliet
self.do_test_for_archive(iso)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmp1m3m5bnq%252Fjoliet.iso']' returned non-zero exit status 2.
======================================================================
ERROR: test_iso_rr (__main__.ArchiveMounter)
archive:// for RockRidge .iso
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 380, in test_iso_rr
self.do_test_for_archive(iso)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmpbw6k5twf%252Fbogus-cd.iso']' returned non-zero exit status 2.
======================================================================
ERROR: test_tar (__main__.ArchiveMounter)
archive:// for tar
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 341, in test_tar
self.do_test_for_archive(tar_path)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmp8yd2d_gi%252Fstuff.tar']' returned non-zero exit status 2.
======================================================================
ERROR: test_tar_bz2 (__main__.ArchiveMounter)
archive:// for tar.bz2
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 361, in test_tar_bz2
self.do_test_for_archive(tar_path)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmp0l3sfk2n%252Fstuff.tar.bz2']' returned non-zero exit status 2.
======================================================================
ERROR: test_tar_gz (__main__.ArchiveMounter)
archive:// for tar.gz
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 351, in test_tar_gz
self.do_test_for_archive(tar_path)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmph6nhnksz%252Fstuff.tar.gz']' returned non-zero exit status 2.
======================================================================
ERROR: test_zip (__main__.ArchiveMounter)
archive:// for .zip
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 371, in test_zip
self.do_test_for_archive(zip_path)
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 394, in do_test_for_archive
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'archive://file%253A%252F%252F%252Ftmp%252Ftmpdifbn6le%252Fstuff.zip']' returned non-zero exit status 2.
======================================================================
ERROR: setUpClass (__main__.Dav)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1427, in setUpClass
subprocess.check_call([httpd_cmd, '-d', klass.httpd_sandbox, '-f', 'apache2.conf', '-k', 'start'])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['httpd', '-d', '/tmp/tmpsj27xtep', '-f', 'apache2.conf', '-k', 'start']' returned non-zero exit status 1.
======================================================================
ERROR: test_rsa (__main__.Sftp)
sftp://localhost with RSA authentication
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 513, in test_rsa
subprocess.check_call(['gio', 'mount', uri])
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gio', 'mount', 'sftp://localhost:22222']' returned non-zero exit status 2.
======================================================================
ERROR: test_deletion_with_same_path (__main__.Trash)
trash:// deletion of two files with the same path
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1597, in setUp
self.assertEqual(self.files_in_trash(), set())
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1615, in files_in_trash
enum = self.gfile_trash.enumerate_children('*', Gio.FileQueryInfoFlags.NONE, None)
gi.repository.GLib.GError: g-io-error-quark: Operation not supported (15)
======================================================================
ERROR: test_file_in_home_api (__main__.Trash)
trash:// deletion, attributes, restoring for a file in $HOME (API)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1597, in setUp
self.assertEqual(self.files_in_trash(), set())
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1615, in files_in_trash
enum = self.gfile_trash.enumerate_children('*', Gio.FileQueryInfoFlags.NONE, None)
gi.repository.GLib.GError: g-io-error-quark: Operation not supported (15)
======================================================================
ERROR: test_file_in_home_cli (__main__.Trash)
trash:// deletion, attributes, restoring for a file in $HOME (CLI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1597, in setUp
self.assertEqual(self.files_in_trash(), set())
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1615, in files_in_trash
enum = self.gfile_trash.enumerate_children('*', Gio.FileQueryInfoFlags.NONE, None)
gi.repository.GLib.GError: g-io-error-quark: Operation not supported (15)
======================================================================
ERROR: test_file_in_system (__main__.Trash)
trash:// deletion for system location
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1597, in setUp
self.assertEqual(self.files_in_trash(), set())
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1615, in files_in_trash
enum = self.gfile_trash.enumerate_children('*', Gio.FileQueryInfoFlags.NONE, None)
gi.repository.GLib.GError: g-io-error-quark: Operation not supported (15)
======================================================================
FAIL: test_api (__main__.ArchiveMounter)
archive:// with Gio API
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 429, in test_api
self.assertEqual(self.mount_api(gfile), True)
AssertionError: GLib.Error('volume doesn’t implement mount', 'g-io-error-quark', 15) != True
======================================================================
FAIL: test_mount_api (__main__.GPhoto)
gphoto2:// mount with Gio API
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hadess/Projects/gnome-install/libexec/installed-tests/gvfs/gvfs-test", line 1739, in test_mount_api
self.assertEqual(self.mount_api(gfile_mount), True)
AssertionError: GLib.Error('volume doesn’t implement mount', 'g-io-error-quark', 15) != True
----------------------------------------------------------------------
Ran 27 tests in 0.117s
FAILED (failures=2, errors=12, skipped=14)
FAIL: gvfs/gvfs-all-tests.test (Child process exited with code 1)