aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/case/mapuid.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-27 03:16:33 +0900
committerOphestra <cat@gensokyo.uk>2025-03-27 03:16:33 +0900
commitf8502c3ece1ff53b244326e341b166174f7f5d79 (patch)
tree896aa5ce7a03b3cd0a128da9e9414166c6184e60 /test/sandbox/case/mapuid.nix
parent996b42634dba83a488d0ac67eac954c0b5582c71 (diff)
test/sandbox: check environment
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/case/mapuid.nix')
-rw-r--r--test/sandbox/case/mapuid.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/sandbox/case/mapuid.nix b/test/sandbox/case/mapuid.nix
index eb042e8c..bf9837d4 100644
--- a/test/sandbox/case/mapuid.nix
+++ b/test/sandbox/case/mapuid.nix
@@ -9,6 +9,19 @@
mapRealUid = true;
want = {
+ env = [
+ "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus"
+ "HOME=/var/lib/fortify/u0/a3"
+ "PULSE_SERVER=unix:/run/user/1000/pulse/native"
+ "SHELL=/run/current-system/sw/bin/bash"
+ "TERM=linux"
+ "USER=u0_a3"
+ "WAYLAND_DISPLAY=wayland-0"
+ "XDG_RUNTIME_DIR=/run/user/1000"
+ "XDG_SESSION_CLASS=user"
+ "XDG_SESSION_TYPE=tty"
+ ];
+
fs = fs "dead" {
".fortify" = fs "800001ed" {
etc = fs "800001ed" null null;