From 7853d2c85c066c62c468b3e1160c04d0597e08b6 Mon Sep 17 00:00:00 2001
From: Douglas Raillard <douglas.raillard@arm.com>
Date: Mon, 23 May 2022 14:25:12 +0100
Subject: [PATCH] target: Run shutils.in in busybox

Ensure shutils.in runs in a busybox shell.
---
 devlib/target.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devlib/target.py b/devlib/target.py
index b6296d6..a43f652 100644
--- a/devlib/target.py
+++ b/devlib/target.py
@@ -1218,7 +1218,7 @@ fi
 
     @call_conn
     def _execute_util(self, command, timeout=None, check_exit_code=True, as_root=False):
-        command = '{} {}'.format(self.shutils, command)
+        command = '{} sh {} {}'.format(quote(self.busybox), quote(self.shutils), command)
         return self.conn.execute(command, timeout, check_exit_code, as_root)
 
     def _extract_archive(self, path, cmd, dest=None):