Skip to content

Commit ccb5513

Browse files
committed
Merge remote-tracking branch 'origin/pr/817'
* origin/pr/817: tests: do not fail dispvm+thunderbird test early if TB is not installed
2 parents 904a264 + 258e582 commit ccb5513

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

qubes/tests/integ/dispvm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,16 +932,20 @@ def test_100_open_in_dispvm(self):
932932
self.loop.run_until_complete(self.testvm1.create_on_disk())
933933
self.app.save()
934934

935+
apps_list = self._get_apps_list(self.template)
935936
app_id = "mozilla-thunderbird"
936937
if "debian" in self.template or "whonix" in self.template:
937938
app_id = "thunderbird"
938939
# F40+ has org.mozilla.thunderbird
939-
if "org.mozilla.thunderbird" in self._get_apps_list(self.template):
940+
if "org.mozilla.thunderbird" in apps_list:
940941
app_id = "org.mozilla.thunderbird"
941942
# F41+ has net.thunderbird.Thunderbird
942-
if "net.thunderbird.Thunderbird" in self._get_apps_list(self.template):
943+
if "net.thunderbird.Thunderbird" in apps_list:
943944
app_id = "net.thunderbird.Thunderbird"
944945

946+
if not app_id in apps_list:
947+
self.skipTest(f"{app_id} not installed in {self.template}")
948+
945949
self.testvm1.features["service.app-dispvm." + app_id] = "1"
946950
self.loop.run_until_complete(self.testvm1.start())
947951
self.loop.run_until_complete(self.wait_for_session(self.testvm1))

0 commit comments

Comments
 (0)