Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ def skipOstree(reason: str) -> Callable[[_FT], _FT]:


def isBeibootLogin() -> bool:
return "ws-container" in os.getenv("TEST_SCENARIO", "")
return True


def skipWsContainer(reason: str) -> Callable[[_FT], _FT]:
Expand All @@ -2664,7 +2664,7 @@ def skipWsContainer(reason: str) -> Callable[[_FT], _FT]:

def skipBeiboot(reason: str) -> Callable[[_FT], _FT]:
"""Decorator for skipping a test with cockpit/ws in beiboot mode"""
if isBeibootLogin():
if testvm.DEFAULT_IMAGE in OSTREE_IMAGES or isBeibootLogin():
return unittest.skip(f"{testvm.DEFAULT_IMAGE}: {reason}")
return lambda testEntity: testEntity

Expand Down
5 changes: 4 additions & 1 deletion test/image-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def build_install_ostree(dist_tars: list[str], image: str, *, verbose: bool, qui
args += [
"--upload", os.path.join(BASE_DIR, "containers") + ":/var/tmp/",
"--script", os.path.join(TEST_DIR, "ws-container.install"),
"--script", os.path.join(TEST_DIR, "ostree.install"),
"--run-command", ("rpm-ostree install -C --uninstall=cockpit-networkmanager --uninstall=cockpit-bridge "
"--uninstall=cockpit-system --uninstall=glib-networking python3"),
# run cockpit/ws once to generate certificate; avoids slow down on every start
"--run-command", "podman container runlabel INSTALL cockpit/ws",
"--upload", os.path.join(BASE_DIR, "dist/playground") + ":/usr/local/share/cockpit/"]
return args

Expand Down
12 changes: 0 additions & 12 deletions test/ostree.install

This file was deleted.