libvirt/tests
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
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
cputestdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainbackupxml2xmlin backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domainbackupxml2xmlout backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domaincapsdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: Fix the libxl xml2domconfig test 2020-05-07 17:38:41 -06:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata tests: Add tests for <lease/> to cover dnsmasq settings 2020-04-23 10:59:33 +02:00
networkxml2firewalldata network: wire up support for IPv6 NAT rules 2020-06-15 17:10:15 +01:00
networkxml2xmlin conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlout conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata nodedev: Add testing for 'mdevctl stop' 2020-06-19 10:39:55 +02:00
nodedevschemadata nodedev: Add testing for 'mdevctl start' 2020-06-19 10:39:55 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
qemucapabilitiesdata qemu: caps: Enable QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI 2020-07-17 07:41:21 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus
qemuhotplugtestdevices
qemuhotplugtestdomains
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata qemu: domain: Regenerate hostdev source private data 2020-07-17 07:41:20 +02:00
qemuvhostuserdata
qemuxml2argvdata qemu: caps: Enable QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI 2020-07-17 07:41:21 +02:00
qemuxml2xmloutdata conf: Parse and format HMAT 2020-07-08 12:05:24 +02:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagepoolxml2xmlout conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virfilecachedata
virfiledata
virhostcpudata hostcpu: Implement virHostCPUGetSignature for s390 2020-05-25 16:09:58 +02:00
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
xlconfigdata tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigdata
xml2vmxdata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c
bhyvexml2argvmock.c
bhyvexml2argvtest.c
bhyvexml2xmltest.c
commandhelper.c tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
commandtest.c tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
cputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
domaincapsmock.c
domaincapstest.c
domainconftest.c
esxutilstest.c
eventtest.c
fchosttest.c
fdstreamtest.c
genericxml2xmltest.c Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c libxl: Add support for max_event_channels 2020-04-09 15:45:05 -06:00
lxcconf2xmltest.c
lxcxml2xmltest.c
Makefile.am Makefile: drop undefined LIB_CLOCK_GETTIME 2020-07-10 09:40:06 +02:00
metadatatest.c
networkxml2conftest.c networkxml2xmltest: Complete renaming of @actual 2020-04-23 12:38:01 +02:00
networkxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
networkxml2xmltest.c conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatetest.c
nodedevmdevctltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nodedevxml2xmltest.c
nsslinktest.c
nssmock.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nsstest.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nwfilterebiptablestest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2xmltest.c
objecteventtest.c
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
pkix_asn1_tab.c
qemuagenttest.c qemumonitortestutils: Store a string identifying test monitor entry 2020-04-27 08:13:52 +02:00
qemublocktest.c qemuBlockStorageSourceGetBackendProps: Convert boolean arguments to flags 2020-07-17 07:41:20 +02:00
qemucapabilitiestest.c
qemucaps2xmlmock.c
qemucaps2xmltest.c
qemucapsfixreplies
qemucapsprobe.c qemu: Invalidate capabilities when host CPU changes 2020-05-25 16:10:04 +02:00
qemucapsprobemock.c
qemucommandutiltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemucpumock.c
qemudomaincheckpointxml2xmltest.c conf: checkpoint: Add a flag storing whether disk 'size' is valid 2020-07-07 12:58:19 +02:00
qemudomainsnapshotxml2xmltest.c
qemufirmwaretest.c
qemuhotplugmock.c replace g_new() with g_new0() for consistency 2020-07-20 19:08:07 -04:00
qemuhotplugtest.c qemuhotplugtest: Free monitor iff successfully initialized 2020-06-29 12:38:22 +02:00
qemumemlocktest.c Revert "tests: Use qemu:///embed to simplify fakerootdir management" 2020-05-07 22:31:04 +02:00
qemumigparamstest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemumonitorjsontest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemumonitortestutils.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemumonitortestutils.h qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation 2020-05-20 08:53:29 +02:00
qemusecuritymock.c
qemusecuritytest.c
qemusecuritytest.h
qemuvhostusertest.c
qemuxml2argvmock.c
qemuxml2argvtest.c qemu: Build HMAT command line 2020-07-08 12:05:24 +02:00
qemuxml2xmltest.c qemu: Build HMAT command line 2020-07-08 12:05:24 +02:00
scsihosttest.c testVirFindSCSIHostByPCI: Remove unused 'path_addr' 2020-06-15 10:27:37 +02:00
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
securityselinuxlabeltest.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
securityselinuxtest.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
test-lib.sh
testutils.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
testutils.h
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
testutilsqemu.h qemuxml2argvtest: Add QAPI/QMP schema validation for -blockdev and -netdev 2020-05-20 09:41:58 +02:00
testutilsqemuschema.c testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsqemuschema.h testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsxen.c
testutilsxen.h
utiltest.c util: Introduce a parser for kernel cmdline arguments 2020-06-16 09:43:34 +02:00
vboxsnapshotxmltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
viralloctest.c
virauthconfigtest.c util: Fix memory leak in virAuthGetCredential 2020-06-16 15:01:05 +02:00
virbitmaptest.c
virbuftest.c tests: eliminate unnecessary labels 2020-07-08 16:35:54 -04:00
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c
vircgrouptest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virconftest.c
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
virfilemock.c
virfiletest.c
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c use g_autoptr() for all usages of virFirewallNew/Free 2020-07-08 16:36:19 -04:00
virhashdata.h
virhashtest.c
virhostcpumock.c
virhostcputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virhostdevmock.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
virhostdevtest.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
viridentitytest.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
viriscsitest.c
virjsontest.c
virkeycodetest.c
virkmodtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmock.h
virmockstathelpers.c
virnetdaemonmock.c tests: don't mock the time() function on mingw 2020-07-23 14:58:16 +01:00
virnetdaemontest.c
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c tests: Minimize variable scope 2020-07-15 12:52:24 +02:00
virnettlscontexttest.c
virnettlshelpers.c virnettlshelpers: Update private key 2020-07-01 13:26:04 +02:00
virnettlshelpers.h
virnettlssessiontest.c
virnetworkportxml2xmltest.c
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c
virpcitest.c
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virprocessmock.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c
virschematest.c news: Convert to reStructuredText 2020-06-05 16:27:33 +02:00
virscsitest.c
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c
virstoragetest.c conf: Sanitize handling of <auth> and <encryption> placement for disks 2020-05-12 06:55:00 +02:00
virstorageutiltest.c
virstringtest.c
virsystemdtest.c
virt-aa-helper-test
virt-admin-self-test
virtestmock.c
virtimetest.c
virtypedparamtest.c
viruritest.c
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c
vshtabletest.c
xlconfigtest.c tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigtest.c Remove use of variables passed only to 'VIR_FREE' 2020-06-15 10:27:37 +02:00
xml2vmxtest.c Add a type attribute on the mac address element 2020-07-13 18:47:44 +02:00