]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: utils: Add virTestLoadFileJSON helper
authorPeter Krempa <pkrempa@redhat.com>
Tue, 25 Jul 2017 16:40:50 +0000 (18:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 27 Jul 2017 07:38:39 +0000 (09:38 +0200)
commite5d03a2c1a335ec1523610b38feda8eb848a1ed4
treee1fb045affb3ed1df417033c7a33bbacc5b28348
parentb650caedf12860c519e84ca152ebb591046d1cc5
tests: utils: Add virTestLoadFileJSON helper

This new helper loads, parses and returns a JSON file from 'abs_srcdir'
By using variable arguments for the function, it's not necessary to
format the path separately in the test cases.

Reviewed-by: Eric Blake <eblake@redhat.com>
tests/testutils.c
tests/testutils.h