test suite reviews and discussions
 help / color / mirror / Atom feed
* [PATCH] framework/crb: Do not use egrep
@ 2024-02-03 10:27 Akihiko Odaki
  0 siblings, 0 replies; only message in thread
From: Akihiko Odaki @ 2024-02-03 10:27 UTC (permalink / raw)
  To: dts; +Cc: Akihiko Odaki

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@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@daynix.com>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-03 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03 10:27 [PATCH] framework/crb: Do not use egrep Akihiko Odaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).