framework: fix umount ahead of mount

Message ID 20221222064700.1015723-1-lijuan.tu@intel.com (mailing list archive)
State Accepted
Headers
Series framework: fix umount ahead of mount |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Tu, Lijuan Dec. 22, 2022, 6:47 a.m. UTC
  umount will impact other applications, it is not a good idea,
so remove it.

Signed-off-by: Lijuan Tu <lijuan.tu@intel.com>
---
 framework/crb.py | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Tu, Lijuan Dec. 26, 2022, 5:26 a.m. UTC | #1
On Thu, 22 Dec 2022 14:47:00 +0800, Lijuan Tu <lijuan.tu@intel.com> wrote:
> umount will impact other applications, it is not a good idea,
> so remove it.
> 
> Signed-off-by: Lijuan Tu <lijuan.tu@intel.com>


Applied, thanks
  

Patch

diff --git a/framework/crb.py b/framework/crb.py
index bd16004a..3c93fdc4 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -205,7 +205,6 @@  class Crb(object):
         """
         Mount hugepage file system on CRB.
         """
-        self.send_expect("umount `awk '/hugetlbfs/ { print $2 }' /proc/mounts`", "# ")
         out = self.send_expect("awk '/hugetlbfs/ { print $2 }' /proc/mounts", "# ")
         # if no hugetlbfs mounted, then above command will return " [PEXPECT]#"
         # so strip the unexptectd " [PEXPECT]#", to proceed to mount the hugetlbfs