From a49a2b57df43a9bb3f1cca5d4a810043b2cbaeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Mon, 9 Sep 2024 14:25:42 +0200 Subject: [PATCH] Run Magick on the server but with right path --- tests/pixelfed-garage.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/pixelfed-garage.nix b/tests/pixelfed-garage.nix index 2431ef80..096eab38 100644 --- a/tests/pixelfed-garage.nix +++ b/tests/pixelfed-garage.nix @@ -146,10 +146,7 @@ pkgs.nixosTest { with subtest("Image displays"): server.succeed(f"su - selenium -c 'selenium-script test@test.com {password}' >&2") server.copy_from_vm("/home/selenium/screenshot.png", "") - displayed_colors = subprocess.run( - ["magick", "screenshot.png", "-define", "histogram:unique-colors=true", "-format", "%c", "histogram:info:"], - capture_output=True - ) + displayed_colors = server.succeed("magick /home/selenium/screenshot.png -define histogram:unique-colors=true -format %c histogram:info:") # check that the green image displayed somewhere green_check = re.match(".*#00FF00.*", displayed_colors.stdout.decode(), re.S) if green_check is None: