Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt tests for missing fstab and crypttab #1364

Open
tbzatek opened this issue Mar 12, 2025 · 0 comments
Open

Adapt tests for missing fstab and crypttab #1364

tbzatek opened this issue Mar 12, 2025 · 0 comments
Assignees

Comments

@tbzatek
Copy link
Member

tbzatek commented Mar 12, 2025

======================================================================
ERROR: test_reformat_inactive_vg_locked (test_20_LVM.UdisksLVMTeardownTest.test_reformat_inactive_vg_locked)
Test tear-down by re-formatting the base PV (VG deactivated, locked)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 1006, in test_reformat_inactive_vg_locked
    self._init_stack(name)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 856, in _init_stack
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_teardown_active_vg_locked (test_20_LVM.UdisksLVMTeardownTest.test_teardown_active_vg_locked)
Test tear-down by removing the base VG (not deactivated, locked)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 979, in test_teardown_active_vg_locked
    self._init_stack(name)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 856, in _init_stack
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_teardown_active_vg_unlocked (test_20_LVM.UdisksLVMTeardownTest.test_teardown_active_vg_unlocked)
Test tear-down by removing the base VG (not deactivated, unlocked)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 967, in test_teardown_active_vg_unlocked
    self._init_stack(name)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 856, in _init_stack
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_teardown_inactive_vg_locked (test_20_LVM.UdisksLVMTeardownTest.test_teardown_inactive_vg_locked)
Test tear-down by removing the base VG (deactivated, locked)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 992, in test_teardown_inactive_vg_locked
    self._init_stack(name)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_20_LVM.py", line 856, in _init_stack
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_configuration_fstab_removable (test_50_block.UdisksBlockRemovableTest.test_configuration_fstab_removable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_50_block.py", line 397, in test_configuration_fstab_removable
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_configuration_crypttab (test_50_block.UdisksBlockTest.test_configuration_crypttab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_50_block.py", line 240, in test_configuration_crypttab
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_configuration_crypttab_multiple_spaces (test_50_block.UdisksBlockTest.test_configuration_crypttab_multiple_spaces)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_50_block.py", line 293, in test_configuration_crypttab_multiple_spaces
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_configuration_crypttab_no_keyfile (test_50_block.UdisksBlockTest.test_configuration_crypttab_no_keyfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_50_block.py", line 317, in test_configuration_crypttab_no_keyfile
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_configuration_fstab (test_50_block.UdisksBlockTest.test_configuration_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_50_block.py", line 175, in test_configuration_fstab
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_configuration_track_parents (test_70_encrypted.UdisksEncryptedTestLUKS1.test_configuration_track_parents)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 373, in test_configuration_track_parents
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_open_crypttab (test_70_encrypted.UdisksEncryptedTestLUKS1.test_open_crypttab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 203, in test_open_crypttab
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_open_crypttab_keyfile (test_70_encrypted.UdisksEncryptedTestLUKS1.test_open_crypttab_keyfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 244, in test_open_crypttab_keyfile
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_configuration_track_parents (test_70_encrypted.UdisksEncryptedTestLUKS2.test_configuration_track_parents)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 373, in test_configuration_track_parents
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_open_crypttab (test_70_encrypted.UdisksEncryptedTestLUKS2.test_open_crypttab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 203, in test_open_crypttab
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_open_crypttab_keyfile (test_70_encrypted.UdisksEncryptedTestLUKS2.test_open_crypttab_keyfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 244, in test_open_crypttab_keyfile
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_teardown_locked (test_70_encrypted.UdisksEncryptedTestLUKS2.test_teardown_locked)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_70_encrypted.py", line 745, in test_teardown_locked
    crypttab = self.read_file('/etc/crypttab')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/crypttab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.EXFATTestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label (test_80_filesystem.EXFATTestCase.test_mount_fstab_complex_label)
Test fstab mounts identified by a complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 818, in test_mount_fstab_complex_label
    self._test_fstab_label(disk_obj_path, label, "LABEL='%s'" % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label2 (test_80_filesystem.EXFATTestCase.test_mount_fstab_complex_label2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 827, in test_mount_fstab_complex_label2
    self._test_fstab_label(disk_obj_path, label, 'LABEL="%s"' % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label_bad (test_80_filesystem.EXFATTestCase.test_mount_fstab_complex_label_bad)
Test fstab mount mismatch by a badly escaped complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 838, in test_mount_fstab_complex_label_bad
    self._test_fstab_label(disk_obj_path, label, "LABEL=%s" % label, True)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_fail (test_80_filesystem.EXFATTestCase.test_mount_fstab_fail)
Test that user can't mount device not listed in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1539, in test_mount_fstab_fail
    self._prepare_mount_test(disk, False, None)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_partlabel (test_80_filesystem.EXFATTestCase.test_mount_fstab_partlabel)
Test fstab mounts identified by PARTLABEL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 867, in test_mount_fstab_partlabel
    self._test_fstab_label(part, fslabel, "PARTLABEL='%s'" % partlabel, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_user_option (test_80_filesystem.EXFATTestCase.test_mount_fstab_user_option)
Test that user can mount and unmount device with the "user" option in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1607, in test_mount_fstab_user_option
    self._prepare_mount_test(disk, True, 'user')
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_users_option (test_80_filesystem.EXFATTestCase.test_mount_fstab_users_option)
Test that user can mount and unmount device with the "users" option in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1571, in test_mount_fstab_users_option
    self._prepare_mount_test(disk, True, 'users')
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.Ext2TestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label (test_80_filesystem.Ext2TestCase.test_mount_fstab_complex_label)
Test fstab mounts identified by a complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 818, in test_mount_fstab_complex_label
    self._test_fstab_label(disk_obj_path, label, "LABEL='%s'" % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label2 (test_80_filesystem.Ext2TestCase.test_mount_fstab_complex_label2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 827, in test_mount_fstab_complex_label2
    self._test_fstab_label(disk_obj_path, label, 'LABEL="%s"' % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label_bad (test_80_filesystem.Ext2TestCase.test_mount_fstab_complex_label_bad)
Test fstab mount mismatch by a badly escaped complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 838, in test_mount_fstab_complex_label_bad
    self._test_fstab_label(disk_obj_path, label, "LABEL=%s" % label, True)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_partlabel (test_80_filesystem.Ext2TestCase.test_mount_fstab_partlabel)
Test fstab mounts identified by PARTLABEL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 867, in test_mount_fstab_partlabel
    self._test_fstab_label(part, fslabel, "PARTLABEL='%s'" % partlabel, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.Ext3TestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label (test_80_filesystem.Ext3TestCase.test_mount_fstab_complex_label)
Test fstab mounts identified by a complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 818, in test_mount_fstab_complex_label
    self._test_fstab_label(disk_obj_path, label, "LABEL='%s'" % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label2 (test_80_filesystem.Ext3TestCase.test_mount_fstab_complex_label2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 827, in test_mount_fstab_complex_label2
    self._test_fstab_label(disk_obj_path, label, 'LABEL="%s"' % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label_bad (test_80_filesystem.Ext3TestCase.test_mount_fstab_complex_label_bad)
Test fstab mount mismatch by a badly escaped complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 838, in test_mount_fstab_complex_label_bad
    self._test_fstab_label(disk_obj_path, label, "LABEL=%s" % label, True)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_partlabel (test_80_filesystem.Ext3TestCase.test_mount_fstab_partlabel)
Test fstab mounts identified by PARTLABEL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 867, in test_mount_fstab_partlabel
    self._test_fstab_label(part, fslabel, "PARTLABEL='%s'" % partlabel, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.Ext4TestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label (test_80_filesystem.Ext4TestCase.test_mount_fstab_complex_label)
Test fstab mounts identified by a complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 818, in test_mount_fstab_complex_label
    self._test_fstab_label(disk_obj_path, label, "LABEL='%s'" % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label2 (test_80_filesystem.Ext4TestCase.test_mount_fstab_complex_label2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 827, in test_mount_fstab_complex_label2
    self._test_fstab_label(disk_obj_path, label, 'LABEL="%s"' % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label_bad (test_80_filesystem.Ext4TestCase.test_mount_fstab_complex_label_bad)
Test fstab mount mismatch by a badly escaped complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 838, in test_mount_fstab_complex_label_bad
    self._test_fstab_label(disk_obj_path, label, "LABEL=%s" % label, True)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_partlabel (test_80_filesystem.Ext4TestCase.test_mount_fstab_partlabel)
Test fstab mounts identified by PARTLABEL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 867, in test_mount_fstab_partlabel
    self._test_fstab_label(part, fslabel, "PARTLABEL='%s'" % partlabel, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.VFATTestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_fail (test_80_filesystem.VFATTestCase.test_mount_fstab_fail)
Test that user can't mount device not listed in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1539, in test_mount_fstab_fail
    self._prepare_mount_test(disk, False, None)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_user_option (test_80_filesystem.VFATTestCase.test_mount_fstab_user_option)
Test that user can mount and unmount device with the "user" option in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1607, in test_mount_fstab_user_option
    self._prepare_mount_test(disk, True, 'user')
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_users_option (test_80_filesystem.VFATTestCase.test_mount_fstab_users_option)
Test that user can mount and unmount device with the "users" option in /etc/fstab
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1571, in test_mount_fstab_users_option
    self._prepare_mount_test(disk, True, 'users')
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 1502, in _prepare_mount_test
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab (test_80_filesystem.XFSTestCase.test_mount_fstab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 807, in test_mount_fstab
    self._test_fstab_label(disk_obj_path, None, None, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label (test_80_filesystem.XFSTestCase.test_mount_fstab_complex_label)
Test fstab mounts identified by a complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 818, in test_mount_fstab_complex_label
    self._test_fstab_label(disk_obj_path, label, "LABEL='%s'" % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label2 (test_80_filesystem.XFSTestCase.test_mount_fstab_complex_label2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 827, in test_mount_fstab_complex_label2
    self._test_fstab_label(disk_obj_path, label, 'LABEL="%s"' % label, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_complex_label_bad (test_80_filesystem.XFSTestCase.test_mount_fstab_complex_label_bad)
Test fstab mount mismatch by a badly escaped complex label
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 838, in test_mount_fstab_complex_label_bad
    self._test_fstab_label(disk_obj_path, label, "LABEL=%s" % label, True)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

======================================================================
ERROR: test_mount_fstab_partlabel (test_80_filesystem.XFSTestCase.test_mount_fstab_partlabel)
Test fstab mounts identified by PARTLABEL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 867, in test_mount_fstab_partlabel
    self._test_fstab_label(part, fslabel, "PARTLABEL='%s'" % partlabel, False)
  File "/var/roothome/udisks/src/tests/dbus-tests/test_80_filesystem.py", line 725, in _test_fstab_label
    fstab = self.read_file('/etc/fstab')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/roothome/udisks/src/tests/dbus-tests/udiskstestcase.py", line 371, in read_file
    with open(filename, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'
@vojtechtrefny vojtechtrefny self-assigned this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants