]> xenbits.xensource.com Git - libvirt.git/commit
sysinfotest: Move from custom dmidecode scripts to virCommandSetDryRun()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Jun 2020 10:51:07 +0000 (12:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Jun 2020 12:00:38 +0000 (14:00 +0200)
commitd954fbc74e350d75a83f5bd98770f0bfea5cf953
tree60a4f8713d6070702c0dd8f0d1d59bd3ed86aec7
parent2ee837a68ca31c0a29ecc2447999ffa271a7a4fd
sysinfotest: Move from custom dmidecode scripts to virCommandSetDryRun()

Problem with custom dmidecode scripts is that they are hard to
modify, especially if we will want them to act differently based
on passed arguments. So far, we have two scripts which do no more
than 'cat $sysinfo' where $sysinfo is saved dmidecode output.

The virCommandSetDryRun() can be used to trick
virSysinfoReadDMI() thinking it executed real dmidecode.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virsysinfo.c
tests/sysinfodata/aarch64-gigabytedmidecode.sh [deleted file]
tests/sysinfodata/x86dmidecode.sh [deleted file]
tests/sysinfotest.c