framework/crb: Do not use egrep
Commit Message
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(-)
---
base-commit: 427e7c3f37bbb1263d81c466d7a83e9193013321
change-id: 20240203-crb-131f32522af5
Best regards,
@@ -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