1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/lib
Chuck 751a27020e nixos/test-driver: Specify /bin/sh shell when running a bourne shell script as the user
The test harness provides the commands it wishes to run in Bourne
syntax.  This fails if the user uses a different shell.  For example,
with fish:

  machine.wait_for_unit("graphical-session.target", "alice")

machine # fish: Unsupported use of '='. To run '-u`' with a modified environment, please use 'env XDG_RUNTIME_DIR=/run/user/`id -u`…'
machine # XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user --no-pager show "graphical-session.target"
machine # ^
machine # [   16.329957] su[1077]: pam_unix(su:session): session closed for user alice
error: retrieving systemctl info for unit "graphical-session.target" under user "alice" failed with exit code 127
2020-05-09 11:01:17 -07:00
..
make-options-doc Revert "make-options-doc: fix string context issues" 2020-04-02 00:53:54 +02:00
test-driver nixos/test-driver: Specify /bin/sh shell when running a bourne shell script as the user 2020-05-09 11:01:17 -07:00
testing treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
build-vms.nix
eval-config.nix nixos: Fix pkgs exporting 2020-03-19 21:19:25 +01:00
from-env.nix
make-channel.nix
make-disk-image.nix
make-ext4-fs.nix nixos/lib/make-ext4-fs: fall back to resize2fs -M if exact resize fails 2020-02-09 17:18:21 +01:00
make-iso9660-image.nix
make-iso9660-image.sh Revert "Revert "iso-image: normalize volumeID"" 2020-04-09 20:06:32 -04:00
make-squashfs.nix
make-system-tarball.nix
make-system-tarball.sh
qemu-flags.nix runInLinuxVM, test-driver: pass host's cpu type to guest vm 2020-01-15 23:35:00 +00:00
testing-python.nix testing{-python}.nix: Remove log pretty-printing cruft 2020-05-07 15:56:30 +02:00
testing.nix testing{-python}.nix: Remove log pretty-printing cruft 2020-05-07 15:56:30 +02:00
utils.nix nixos/lib: use removePrefix in escapeSystemdPath 2020-03-14 03:13:04 +00:00