Merge pull request #774 from karolinavelkaja/fix_ioclass_pid_test

test fix: test_ioclass_pid
This commit is contained in:
Katarzyna Łapińska 2021-05-10 15:29:01 +02:00 committed by GitHub
commit d32a8b0f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ def test_ioclass_pid():
# pid saved in 'ns_last_pid' has to be smaller by one than target dd pid
dd_and_pid_command = (
f"echo {pid-1} > /proc/sys/kernel/ns_last_pid && {dd_command} "
f"&& cat /proc/sys/kernel/ns_last_pid"
)
output = TestRun.executor.run(dd_and_pid_command)
if output.exit_code != 0: