nixos/tests/pantheon: Pgrep io.elementary.files.xdg-desktop-portal
Hopefully this is less flaky.
This commit is contained in:
parent
c5af5c95ff
commit
52c9128476
@ -69,8 +69,7 @@ import ./make-test-python.nix (
|
|||||||
# https://github.com/elementary/gala/pull/2140
|
# https://github.com/elementary/gala/pull/2140
|
||||||
for i in ["gala", "io.elementary.wingpanel", "io.elementary.dock", "gsd-media-keys", "gsd-xsettings", "io.elementary.desktop.agent-polkit"]:
|
for i in ["gala", "io.elementary.wingpanel", "io.elementary.dock", "gsd-media-keys", "gsd-xsettings", "io.elementary.desktop.agent-polkit"]:
|
||||||
machine.wait_until_succeeds(f"pgrep -f {i}")
|
machine.wait_until_succeeds(f"pgrep -f {i}")
|
||||||
for i in ["io.elementary.files.xdg-desktop-portal.service"]:
|
machine.wait_until_succeeds("pgrep -xf ${pkgs.pantheon.elementary-files}/libexec/io.elementary.files.xdg-desktop-portal")
|
||||||
machine.wait_for_unit(i, "${user.name}")
|
|
||||||
|
|
||||||
with subtest("Check if various environment variables are set"):
|
with subtest("Check if various environment variables are set"):
|
||||||
cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf ${pkgs.pantheon.gala}/bin/gala)/environ"
|
cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf ${pkgs.pantheon.gala}/bin/gala)/environ"
|
||||||
|
|||||||
@ -60,8 +60,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
|
|||||||
machine.wait_until_succeeds(f"pgrep -f {i}")
|
machine.wait_until_succeeds(f"pgrep -f {i}")
|
||||||
for i in ["gala", "io.elementary.wingpanel", "io.elementary.dock"]:
|
for i in ["gala", "io.elementary.wingpanel", "io.elementary.dock"]:
|
||||||
machine.wait_for_window(i)
|
machine.wait_for_window(i)
|
||||||
for i in ["io.elementary.files.xdg-desktop-portal.service"]:
|
machine.wait_until_succeeds("pgrep -xf ${pkgs.pantheon.elementary-files}/libexec/io.elementary.files.xdg-desktop-portal")
|
||||||
machine.wait_for_unit(i, "${user.name}")
|
|
||||||
|
|
||||||
with subtest("Check if various environment variables are set"):
|
with subtest("Check if various environment variables are set"):
|
||||||
cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf ${pkgs.pantheon.gala}/bin/gala)/environ"
|
cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf ${pkgs.pantheon.gala}/bin/gala)/environ"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user