From 14e3e9a9a128d5f8f707fc70075d59a9b3a07f63 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 25 Mar 2025 11:38:45 +0000 Subject: [PATCH] tests: execute: Actually verify the set nice level Signed-off-by: Michael Tremer --- tests/python/execute.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/python/execute.py b/tests/python/execute.py index d8b0c027..c2ce2e89 100755 --- a/tests/python/execute.py +++ b/tests/python/execute.py @@ -123,7 +123,14 @@ class ExecuteTests(tests.TestCase): self.pakfire.execute(["/does-not-exist"], input=b"1234") def test_nice(self): - self.pakfire.execute(["/command", "print-nice"], nice=5) + """ + Check if the jail is able to set the nice level + """ + output = self.pakfire.execute(["/command", "print-nice"], + nice=5, return_output=True) + + # Check that we have received 5 + self.assertEqual(output, b"5\n") def test_nice_invalid_input(self): """ -- 2.39.5