From: Michael Tremer Date: Tue, 25 Mar 2025 11:38:45 +0000 (+0000) Subject: tests: execute: Actually verify the set nice level X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14e3e9a9a128d5f8f707fc70075d59a9b3a07f63;p=pakfire.git tests: execute: Actually verify the set nice level Signed-off-by: Michael Tremer --- 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): """