libvirt/tests/commanddata
Peter Krempa 6ae53a1509 tests: commandtest: Make 'test4' checking daemonization more reliable
The 'commandhelper' checks effectively whether the parent process is
still around to report whether it was daemonized or not.

This creates a unlikely race condition in cases when we do actually
daemonize the process as the intermediate process used for the
daemonization might not have terminated yet which would report wrong
result leading to test failure.

For now there's just 'test4' which actually daemonizes the process.

Add an argument '--check-daemonize' which asks for retries of the
daemonization check in cases where we expect that the commandhelper is
going to be daemonized and use it in 'test4' to make the test more
reliable.

I've observed the test failure sporadically when my box is under load
e.g. while building two trees at once.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-07-27 15:44:38 +02:00
..
test2.log tests: fix typo 2017-11-20 13:22:48 +01:00
test3.log tests: remove event loop from command test 2020-02-04 14:00:44 +00:00
test4.log tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
test5.log tests: fix typo 2017-11-20 13:22:48 +01:00
test6.log command: test umask support 2014-09-03 09:36:13 -06:00
test7.log tests: fix typo 2017-11-20 13:22:48 +01:00
test8.log command: test umask support 2014-09-03 09:36:13 -06:00
test9.log tests: fix typo 2017-11-20 13:22:48 +01:00
test10.log tests: fix typo 2017-11-20 13:22:48 +01:00
test11.log tests: fix typo 2017-11-20 13:22:48 +01:00
test12.log tests: fix typo 2017-11-20 13:22:48 +01:00
test13.log tests: fix typo 2017-11-20 13:22:48 +01:00
test14.log tests: fix typo 2017-11-20 13:22:48 +01:00
test15.log tests: fix typo 2017-11-20 13:22:48 +01:00
test16.log command: shell-quote when logging commands 2012-08-31 08:10:58 -07:00
test20.log tests: fix typo 2017-11-20 13:22:48 +01:00
test21.log tests: fix typo 2017-11-20 13:22:48 +01:00
test26.log qemu: use line breaks in command line args written to log 2018-12-17 15:02:11 +00:00
test27.log tests: remove event loop from command test 2020-02-04 14:00:44 +00:00