This website requires JavaScript.
Explore
Help
Sign In
External
/
libvirt
Watch
1
Star
0
Fork
0
You've already forked libvirt
mirror of
https://gitlab.com/libvirt/libvirt.git
synced
2024-11-09 23:10:08 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
738b201aad
libvirt
/
tests
/
nodedevmdevctldata
/
mdev_d069d019_36ea_4111_8f0a_8c9a70e21366-create.json
2 lines
48 B
JSON
Raw
Normal View
History
Unescape
Escape
tests: Ensure test files are newline-terminated Currently we only append a newline to 'actual' if 'expected' (as loaded from file) already ends in a newline, but that results in inconsistent behavior. For example, some of the test files used by virhostcputest are newline-terminated and some aren't. If we were to remove existing newlines from those files or add them where they aren't present, the test would still pass, and even using VIR_TEST_REGENERATE_OUTPUT=1 wouldn't change them back. Make things consistent by ensuring that 'actual' is always newline-terminated. The only exception is when 'actual' is completely empty: in that case, we want the file to be actually empty, not contain a single empty line. query-jobs-empty.result in qemumonitorjsondata/ is an example of this being used. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2024-01-05 11:02:43 +00:00
{
"mdev_type"
:
"i915-GVTg_V5_8"
,
"start"
:
"manual"
}
Reference in New Issue
Copy Permalink