diff options
author | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-10-11 23:20:57 +0200 |
---|---|---|
committer | c0bw3b <c0bw3b@users.noreply.github.com> | 2019-10-11 23:20:57 +0200 |
commit | 1f7455cf0d131b10a3f3e0b72a87bde14ea892c3 (patch) | |
tree | 0e321339d00fcfe686821bab9a60b8ed0022cd02 /nixos/tests/login.nix | |
parent | 74008e2c3c06c1526bae722529ce929078c54eb0 (diff) |
nixos.tests: silence getfacl absolute path message
Default getfacl behavior is to remove leading slash on absolute paths in its header printed to stdout. Before the header it will also print a message about it... Switches -p -or --absolute-names can turn this off and remove some noise from our tests logs.
Diffstat (limited to 'nixos/tests/login.nix')
-rw-r--r-- | nixos/tests/login.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/login.nix b/nixos/tests/login.nix index 2a7c063d30333..bd8ed23a7b8e4 100644 --- a/nixos/tests/login.nix +++ b/nixos/tests/login.nix @@ -48,12 +48,12 @@ import ./make-test.nix ({ pkgs, latestKernel ? false, ... }: # Check whether systemd gives and removes device ownership as # needed. subtest "device permissions", sub { - $machine->succeed("getfacl /dev/snd/timer | grep -q alice"); + $machine->succeed("getfacl -p /dev/snd/timer | grep -q alice"); $machine->sendKeys("alt-f1"); $machine->waitUntilSucceeds("[ \$(fgconsole) = 1 ]"); - $machine->fail("getfacl /dev/snd/timer | grep -q alice"); + $machine->fail("getfacl -p /dev/snd/timer | grep -q alice"); $machine->succeed("chvt 2"); - $machine->waitUntilSucceeds("getfacl /dev/snd/timer | grep -q alice"); + $machine->waitUntilSucceeds("getfacl -p /dev/snd/timer | grep -q alice"); }; # Log out. |