diff --git a/py-scripts/real_application_tests/youtube/lf_interop_youtube.py b/py-scripts/real_application_tests/youtube/lf_interop_youtube.py index 4a4c610a1..e62231714 100644 --- a/py-scripts/real_application_tests/youtube/lf_interop_youtube.py +++ b/py-scripts/real_application_tests/youtube/lf_interop_youtube.py @@ -427,9 +427,17 @@ def create_generic_endp(self): for i in range(0, len(self.lanforge_os_type)): cmd = ( - "python3 /home/lanforge/lanforge-scripts/py-scripts/real_application_tests/youtube/youtube_android_test.py --url %s --duration %s --devices %s --upstream_port %s --resolution %s " - ) % (self.url, self.duration, self.serial_list_str, self.host, self.resolution) - + "su - lanforge -c " + "\"cd /home/lanforge && " + "python3 /home/lanforge/lanforge-scripts/py-scripts/real_application_tests/youtube/youtube_android_test.py " + "--url '%s' --duration '%s' --devices '%s' --upstream_port '%s' --resolution '%s'\"" + ) % ( + self.url, + self.duration, + self.serial_list_str, + self.host, + self.resolution, + ) logging.info(f"Setting command for Android devices: {cmd}") self.generic_endps_profile.set_cmd(self.generic_endps_profile.created_endp[-(i + 1)], cmd)