From 37539e776833f9d89c8bdff95208a09d5eb0e30b Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sat, 26 Dec 2020 17:03:34 +0100 Subject: nixos/tests/systemd-journal: ensure that --grep works Previously, after the version bump to v247, we broke journalctl --grep as libpcre2 was lazily loaded during runtime using dlopen(3). This ensures that we have a test case that alerts us when it fails again. --- nixos/tests/systemd-journal.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/tests/systemd-journal.nix b/nixos/tests/systemd-journal.nix index c50c151ae10..b0a3f62ce1c 100644 --- a/nixos/tests/systemd-journal.nix +++ b/nixos/tests/systemd-journal.nix @@ -13,6 +13,8 @@ import ./make-test-python.nix ({ pkgs, ... }: testScript = '' machine.wait_for_unit("multi-user.target") + machine.succeed("journalctl --grep=systemd") + machine.succeed( "${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'" ) -- cgit 1.4.1