Skip to content

Commit

Permalink
debug TestStorageMountingLUKS.testOverMounting
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Oct 13, 2023
1 parent 57c930c commit 1cfdf96
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 87 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/unit-tests.yml

This file was deleted.

36 changes: 0 additions & 36 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,6 @@ srpm_build_deps:
# use the nicely formatted release NEWS from our upstream release, instead of git shortlog
copy_upstream_release_description: true
jobs:
- job: tests
identifier: self
trigger: pull_request
targets:
- fedora-38
- fedora-39
- fedora-latest-aarch64
- fedora-development
- centos-stream-8-x86_64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# current Fedora runs reverse dependency testing against https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/
- job: tests
identifier: revdeps
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"

# run build/unit tests on some interesting architectures
- job: copr_build
trigger: pull_request
targets:
# 32 bit
- fedora-development-i386
# big-endian
- fedora-development-s390x

# for cross-project testing
- job: copr_build
trigger: commit
Expand Down
33 changes: 33 additions & 0 deletions test/verify/check-storage-mounting
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
m = self.machine
b = self.browser

self.write_file("/etc/systemd/system/udisks2.service.d/debug.conf",
"[Service]\nExecStart=\nExecStart=/usr/libexec/udisks2/udisksd --debug\n",
post_restore_action="systemctl daemon-reload")
m.execute("systemctl daemon-reload; systemctl try-restart udisks2")

self.login_and_go("/storage")

# Add a disk and make two partitions on it, one on /run/foo
Expand Down Expand Up @@ -609,6 +614,10 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
self.assert_in_configuration(disk + "2", "crypttab", "options", "noauto")
self.assertIn("noauto", m.execute("findmnt --fstab -n -o OPTIONS /run/foo/bar"))

b.eval_js('window.debugging = "dbus"')
b.cdp.trace = True
m.verbose = True

# Mount them again and check that initializing the disk will
# unmount /run/foo/bar first.

Expand All @@ -627,6 +636,30 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
self.dialog_apply()
self.content_row_wait_in_col(1, 0, "Free space")

def testOverMounting2(self):
self.testOverMounting()

def testOverMounting3(self):
self.testOverMounting()

def testOverMounting4(self):
self.testOverMounting()

def testOverMounting5(self):
self.testOverMounting()

def testOverMounting6(self):
self.testOverMounting()

def testOverMounting7(self):
self.testOverMounting()

def testOverMounting8(self):
self.testOverMounting()

def testOverMounting9(self):
self.testOverMounting()


if __name__ == '__main__':
testlib.test_main()

0 comments on commit 1cfdf96

Please sign in to comment.