git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/chromium: Fix sandbox info matching

As reported by @andir, the regular expressions that match the sandbox output are no longer matching in the recent Chromium bump as of bb03fbc2c8b97ef5a4f4205eee51029155164b8a. Instead of a boolean field that determines whether namespace sandboxes are on, the namespace sandbox is now an enum within "Layer 1 Sandbox". I've modified the regular expressions accordingly and also ran the test for the stable branch, which now succeeds. Signed-off-by: aszlig <aszlig@nix.build> Issue: https://github.com/NixOS/nixpkgs/issues/49442 Cc: @bendlas, @andir

commit73cdd5a4762b3372634eed039912a0e25a5fd501 authoraszlig <aszlig@nix.build> dateFri 2 Nov 2018, 10:18 (8 years ago) parent5de50f8
1 file changed+2−2
nixos/tests/chromium.nix+2−2
nixos/tests/chromium.nix+2−2
@@ -168,7 +168,7 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
168168
169169 my $clipboard = $machine->succeed(ru "${pkgs.xclip}/bin/xclip -o");
170170 die "sandbox not working properly: $clipboard"
171− unless $clipboard =~ /namespace sandbox.*yes/mi
171+ unless $clipboard =~ /layer 1 sandbox.*namespace/mi
172172 && $clipboard =~ /pid namespaces.*yes/mi
173173 && $clipboard =~ /network namespaces.*yes/mi
174174 && $clipboard =~ /seccomp.*sandbox.*yes/mi
@@ -186,7 +186,7 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
186186
187187 my $clipboard = $machine->succeed(ru "${pkgs.xclip}/bin/xclip -o");
188188 die "copying twice in a row does not work properly: $clipboard"
189− unless $clipboard =~ /namespace sandbox.*yes/mi
189+ unless $clipboard =~ /layer 1 sandbox.*namespace/mi
190190 && $clipboard =~ /pid namespaces.*yes/mi
191191 && $clipboard =~ /network namespaces.*yes/mi
192192 && $clipboard =~ /seccomp.*sandbox.*yes/mi