This website requires JavaScript.
Explore
Help
Sign In
openkylin
/
libvirt
mirror of
https://gitee.com/openkylin/libvirt.git
Watch
9
Star
0
Fork
You've already forked libvirt
0
Code
Issues
Projects
Releases
Wiki
Activity
632999b929
libvirt
/
tests
/
bhyvexml2argvdata
/
bhyvexml2argv-disk-cdrom.ld...
5 lines
47 B
Plaintext
Raw
Normal View
History
Unescape
Escape
bhyvexml2argvtest: use virCommandToStringFull to strip command path Currently the tests would fail if the bhyve commands are installed in different path then /usr/bin. Strip the command path to not depend on the host environment. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2021-04-17 02:32:34 +08:00
bhyveload \
tests: redo test argv file line wrapping Back in commit bd6c46fa0cfe275c24debc1152cfc5206c04b59b Author: Juerg Haefliger <juerg.haefliger@hp.com> Date: Mon Jan 31 06:42:57 2011 -0500 tests: handle backspace-newline pairs in test input files all the test argv files were line wrapped so that the args were less than 80 characters. The way the line wrapping was done turns out to be quite undesirable, because it often leaves multiple parameters on the same line. If we later need to add or remove individual parameters, then it leaves us having to redo line wrapping. This commit changes the line wrapping so that every single "-param value" is one its own new line. If the "value" is still too long, then we break on ',' or ':' or ' ' as needed. This means that when we come to add / remove parameters from the test files line, the patch diffs will only ever show a single line added/removed which will greatly simplify review work. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2015-11-06 21:20:06 +08:00
-m 214 \
bhyvexml2argvtest: Use internal wrapping of command line arguments virCommandToString has the possibility to return an already wrapped string with better format than what we get from the test wrapper script. The main advantage is that arguments for an option are always on the same line which makes it more easy to see what changed in a diff and prevents re-wrapping of the line if a wrapping point moves over the threshold. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2021-03-31 16:46:36 +08:00
-d /tmp/cdrom.iso \
bhyve