[Qemu-devel] [PATCH v2 11/18] tests/vm/openbsd: Install GNU sed from the ports

Philippe Mathieu-Daudé posted 18 patches 6 years, 9 months ago
Maintainers: "Philippe Mathieu-Daudé" <philmd@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Fam Zheng <fam@euphon.net>, "Alex Bennée" <alex.bennee@linaro.org>, Brad Smith <brad@comstyle.com>
[Qemu-devel] [PATCH v2 11/18] tests/vm/openbsd: Install GNU sed from the ports
Posted by Philippe Mathieu-Daudé 6 years, 9 months ago
Various iotests scripts (run via 'make check-block') require a
GNU sed to use the (non-POSIX) GNU extensions.
Install GNU sed from the ports to be able to run those tests.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/vm/openbsd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/vm/openbsd b/tests/vm/openbsd
index e9c2a3f2c8..7c456e9706 100755
--- a/tests/vm/openbsd
+++ b/tests/vm/openbsd
@@ -47,6 +47,8 @@ class OpenBSDVM(basevm.BaseVM):
         self.ssh_root_check("sed -E -i 's_(/tmp\ ffs)\ ([^\ ]*)_\\1 \\2,wxallowed_' /etc/fstab")
         sys.stderr.write("Installing bash...\n")
         self.ssh_root_check("PKG_PATH=https://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64 pkg_add bash")
+        sys.stderr.write("Installing GNU sed...\n")
+        self.ssh_root_check("PKG_PATH=https://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64 pkg_add gsed")
         self.ssh_root("shutdown -p now")
         self.wait()
 
-- 
2.20.1