test-qga: add test for guest-get-osinfo
commit339ca68bef9f30dd18e84b7d92398327e3f819a3
authorTomáš Golembiovský <tgolembi@redhat.com>
Fri, 14 Jul 2017 14:28:58 +0000 (14 16:28 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jul 2017 10:49:01 +0000 (18 05:49 -0500)
treee76e07bcc25c3aa8475f19fbb86c831182a03bd8
parentc28afa76c0e2829d1ebe5ad33062d1697bf2710b
test-qga: add test for guest-get-osinfo

Add test for guest-get-osinfo command.

Qemu-ga was modified to accept QGA_OS_RELEASE environment variable. If
the variable is defined it is interpreted as path to the os-release file
and it is parsed instead of the default paths.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* move declarations to beginning of functions
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
tests/data/test-qga-os-release [new file with mode: 0644]
tests/test-qga.c