diff mbox series

[2/2] support/testing: Test eltest (part of execline)

Message ID 20240726-s6-tests-v1-2-fb57b051e87f@gmx.net
State Accepted
Headers show
Series Fix s6-portable-utils runtime tests | expand

Commit Message

J. Neuschäfer July 26, 2024, 8:03 p.m. UTC
The previous commit removes s6-test from the runtime tests. This commit
adds the same test for eltest, which replaced s6-test.

Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
---
 support/testing/tests/package/test_execline.py | 5 +++++
 1 file changed, 5 insertions(+)


--
2.43.0
diff mbox series

Patch

diff --git a/support/testing/tests/package/test_execline.py b/support/testing/tests/package/test_execline.py
index a7ea36c1a2..15ff92d762 100644
--- a/support/testing/tests/package/test_execline.py
+++ b/support/testing/tests/package/test_execline.py
@@ -21,3 +21,8 @@  class TestExecline(infra.basetest.BRTest):
         output, exit_code = self.emulator.run("execlineb -c 'echo hello world'")
         self.assertEqual(exit_code, 0)
         self.assertEqual(output[0].strip(), "hello world")
+
+        _, exit_code = self.emulator.run("mkfifo testpipe")
+        self.assertEqual(exit_code, 0)
+        _, exit_code = self.emulator.run("execlineb -c 'eltest -p testpipe'")
+        self.assertEqual(exit_code, 0)