diff --git a/tests/emulator/test_channels_shell.py b/tests/emulator/test_channels_shell.py index 5e2f925e..311af374 100644 --- a/tests/emulator/test_channels_shell.py +++ b/tests/emulator/test_channels_shell.py @@ -31,13 +31,25 @@ def run(d): 'id', f'mkdir -p {STD}', f'touch {STD}/confirmation-granted', + 'echo $PATH', '/data/data/com.termux.nix/files/usr/bin/login echo test', + '/data/data/com.termux.nix/files/usr/bin/login echo $PATH', '/data/data/com.termux.nix/files/usr/bin/login id', ('cd /data/data/com.termux.nix/files/home; ' 'pwd; ' 'id; ' '/data/data/com.termux.nix/files/usr/bin/login ' - ' nix-on-droid on-device-test') + ' env'), + ('cd /data/data/com.termux.nix/files/home; ' + 'pwd; ' + 'id; ' + 'env -i /data/data/com.termux.nix/files/usr/bin/login ' + ' env'), + ('cd /data/data/com.termux.nix/files/home; ' + 'pwd; ' + 'id; ' + 'env -i /data/data/com.termux.nix/files/usr/bin/login ' + ' nix-on-droid on-device-test'), ]: print(f'running {cmd} as {user} with capture:') p = subprocess.Popen(['adb', 'shell', 'su', '0', 'su', user,