From 7801890c3a076309362b477e9e27952dd4ebbab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Fri, 26 Jul 2024 22:03:53 +0200 Subject: [PATCH] support/testing: add testing for eltest in execline test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Thomas Petazzoni --- support/testing/tests/package/test_execline.py | 5 +++++ 1 file changed, 5 insertions(+) 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)