Skip to content
Open
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: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ checks:pylint:
stage: checks

checks:tests:
variables:
VM_IMAGE: "fedora:41"
after_script:
- ci/codecov-wrapper -F unittests
before_script:
Expand All @@ -21,7 +23,7 @@ checks:tests:
# Installing ZFS after the CI requirements so after_script codecov-wrapper does not explode if ZFS install fails.
kver=$(uname -r)
echo $kver is the running kernel >&2
sudo dnf install -y https://zfsonlinux.org/fedora/zfs-release-3-1$(rpm --eval "%{dist}").noarch.rpm
sudo dnf install -y https://zfsonlinux.org/fedora/zfs-release-3-1.fc42.noarch.rpm
# We are now going to force the installation of the specific kernel-devel version
# that matches the current kernel. If unavailable, the test should fail now.
# Ideally the VM image ships with a kernel-devel package that matches the
Expand Down
14 changes: 9 additions & 5 deletions qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def test_010_run_xterm(self):
self.assertEqual(self.testvm1.get_power_state(), "Running")

self.loop.run_until_complete(self.wait_for_session(self.testvm1))
p = self.loop.run_until_complete(self.testvm1.run("xterm"))
title = "user@{}".format(self.testvm1.name)
p = self.loop.run_until_complete(
self.testvm1.run(f"xterm -title {title}")
)
try:
title = "user@{}".format(self.testvm1.name)
if self.template.count("whonix"):
title = "user@host"
self.wait_for_window(title)

self.loop.run_until_complete(asyncio.sleep(0.5))
Expand Down Expand Up @@ -123,6 +123,8 @@ def test_011_run_gnome_terminal(self):
self.skipTest("Xfce template doesn't have 'gnome-terminal'")
if "archlinux" in self.template:
self.skipTest("Arch template doesn't have 'gnome-terminal'")
if "guix" in self.template:
self.skipTest("Guix template doesn't have 'gnome-terminal'")
self.loop.run_until_complete(self.testvm1.start())
self.assertEqual(self.testvm1.get_power_state(), "Running")
self.loop.run_until_complete(self.wait_for_session(self.testvm1))
Expand Down Expand Up @@ -373,9 +375,11 @@ def test_115_qrexec_filecopy_no_agent(self):

with self.qrexec_policy("qubes.Filecopy", self.testvm1, self.testvm2):
try:
service_ctl = "herd" if "guix" in self.template else "systemctl"
self.loop.run_until_complete(
self.testvm2.run_for_stdio(
"systemctl stop qubes-qrexec-agent.service", user="root"
f"{service_ctl} stop qubes-qrexec-agent.service",
user="root",
)
)
except subprocess.CalledProcessError:
Expand Down