3
0
Fork 0
forked from mirrors/nixpkgs
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 Merge branch 'master' into flip-map-foreach 2019-08-18 18:00:25 +03:00
eval-config.nix nixos: Fix pkgs exporting 2020-03-19 21:19:25 +01:00
from-env.nix
make-channel.nix Remove incorrect sentence from make-channel comment 2018-11-04 20:45:49 +01:00
make-disk-image.nix Revert "make-disk-image: replace nixos-install by nix-env calls" 2019-10-07 17:21:28 +02:00
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 nixos/make-iso9660-image: Fix doc typo 2019-10-18 11:58:28 -07:00
make-iso9660-image.sh Revert "Revert "iso-image: normalize volumeID"" 2020-04-09 20:06:32 -04:00
make-squashfs.nix kernel config: add support for CONFIG_SQUASHFS_ZSTD (#52967) 2019-01-17 15:24:44 +02:00
make-system-tarball.nix use closure-info for building system tarball 2018-11-07 12:52:53 +08:00
make-system-tarball.sh use closure-info for building system tarball 2018-11-07 12:52:53 +08:00
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