[PATCH] framework/crb: Do not use egrep

Akihiko Odaki akihiko.odaki at daynix.com
Sat Feb 3 11:27:58 CET 2024


GNU grep 3.8 outputs:
> egrep: warning: egrep is obsolescent; using grep -E

This makes self.send_expect() fail.

Signed-off-by: Akihiko Odaki <akihiko.odaki at daynix.com>
---
 framework/crb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/crb.py b/framework/crb.py
index 9e3b0a58..9b7688c7 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -1069,7 +1069,7 @@ class Crb(object):
         elif self.get_os_type() == "freebsd":
             return False
         elif self.send_expect(
-            "systemd-detect-virt -c|egrep '(systemd-nspawn|lxc|docker|podman|rkt|wsl|container-other)$' ",
+            "systemd-detect-virt -c|grep -E '(systemd-nspawn|lxc|docker|podman|rkt|wsl|container-other)$' ",
             "# ",
         ):
             return True

---
base-commit: 427e7c3f37bbb1263d81c466d7a83e9193013321
change-id: 20240203-crb-131f32522af5

Best regards,
-- 
Akihiko Odaki <akihiko.odaki at daynix.com>



More information about the dts mailing list