From 25f49c76c48ba439d3fe8719bb9115c31d64b111 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Wed, 10 Jul 2024 13:31:58 +0200 Subject: [PATCH] tests/emulator/test_channels_shell: set empty PATH to match device env --- tests/emulator/test_channels_shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/emulator/test_channels_shell.py b/tests/emulator/test_channels_shell.py index 5e2f925e..02d648ed 100644 --- a/tests/emulator/test_channels_shell.py +++ b/tests/emulator/test_channels_shell.py @@ -36,8 +36,8 @@ def run(d): ('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 PATH= /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,