tests: Enable directory override for qemucapsprobe
tests: Enable directory override for qemucapsprobe

Currently, qemucapsprobe fails when libvirt is not already installed
on the system:

  $ ./tests/qemucapsprobe /path/to/qemu-system-ppc64 >/dev/null
  I/O warning : failed to load external entity "/usr/share/libvirt/cpu_map/index.xml"
  2020-05-06 09:49:59.136+0000: 269822: info : libvirt version: 6.4.0
  2020-05-06 09:49:59.136+0000: 269822: info : hostname: [...]
  2020-05-06 09:49:59.136+0000: 269822: warning : virQEMUCapsLogProbeFailure:5127 :
  Failed to probe capabilities for /path/to/qemu-system-ppc64: XML error: failed to
  parse xml document '/usr/share/libvirt/cpu_map/index.xml'

It would be great if the tool could work entirely out of the build
directory, and this patch achieves just that.

Suggested-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Signed-off-by: Andrea Bolognani <3ada0bee826c753786fdbba72243dfba997094cf@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

crobinso/libvirt,jfehlig/libvirt,crobinso/libvirt,jfehlig/libvirt,libvirt/libvirt,zippy2/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt,jardasgit/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,nertpinx/libvirt,nertpinx/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,nertpinx/libvirt,jardasgit/libvirt,olafhering/libvirt