summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-12-26 17:03:34 +0100
committerAndreas Rammhold <andreas@rammhold.de>2021-01-03 11:50:01 +0100
commit37539e776833f9d89c8bdff95208a09d5eb0e30b (patch)
tree005fb4494a6bc358b4df205347b5068966260555
parent494ed4d6ee6f3d3b25a0b5d45f3f9e8dd1c45ccf (diff)
downloadnixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar.gz
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar.bz2
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar.lz
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar.xz
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.tar.zst
nixpkgs-37539e776833f9d89c8bdff95208a09d5eb0e30b.zip
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.
-rw-r--r--nixos/tests/systemd-journal.nix2
1 files changed, 2 insertions, 0 deletions
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\"'"
     )