summary refs log tree commit diff
path: root/nixos/tests/systemd-boot.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-11-06 12:24:32 +0100
committerGitHub <noreply@github.com>2021-11-06 12:24:32 +0100
commit6ae271565dd609b05f85f3830d2257808b0f916e (patch)
treea0d769cc0886fa7b99f434b188ab4c88e5689608 /nixos/tests/systemd-boot.nix
parent6c187500e2b3345daffa876b6b4d5a0b4d754f71 (diff)
parent3efc2de6d1c001b55daafa60f605255e31d676ea (diff)
downloadnixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar.gz
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar.bz2
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar.lz
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar.xz
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.tar.zst
nixpkgs-6ae271565dd609b05f85f3830d2257808b0f916e.zip
Merge pull request #140046 from jrobsonchase/systemd-boot/fix-regexp
nixos/systemd-boot: Fix installed version regexp
Diffstat (limited to 'nixos/tests/systemd-boot.nix')
-rw-r--r--nixos/tests/systemd-boot.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/systemd-boot.nix b/nixos/tests/systemd-boot.nix
index ae3727afaf6..8c9d3d19f2a 100644
--- a/nixos/tests/systemd-boot.nix
+++ b/nixos/tests/systemd-boot.nix
@@ -102,12 +102,12 @@ in
       machine.succeed(
           """
         find /boot -iname '*.efi' -print0 | \
-        xargs -0 -I '{}' sed -i 's/#### LoaderInfo: systemd-boot .* ####/#### LoaderInfo: systemd-boot 001 ####/' '{}'
+        xargs -0 -I '{}' sed -i 's/#### LoaderInfo: systemd-boot .* ####/#### LoaderInfo: systemd-boot 000.0-1-notnixos ####/' '{}'
       """
       )
 
       output = machine.succeed("/run/current-system/bin/switch-to-configuration boot")
-      assert "updating systemd-boot from 001 to " in output
+      assert "updating systemd-boot from (000.0-1-notnixos) to " in output
     '';
   };
 }