Skip to content

Commit

Permalink
WIP: tests/emulator/test_channels_shell: investigate what happens to …
Browse files Browse the repository at this point in the history
…$PATH
  • Loading branch information
t184256 committed Jul 10, 2024
1 parent 598fa1f commit 0739288
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/emulator/test_channels_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,25 @@ def run(d):
'id',
f'mkdir -p {STD}',
f'touch {STD}/confirmation-granted',
'echo $PATH',
'env -i env',
'/data/data/com.termux.nix/files/usr/bin/login echo test',
'/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,
Expand Down

0 comments on commit 0739288

Please sign in to comment.