mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: avoid new failure of the daemon-conf test
* tests/daemon-conf: Accommodate the fact that out template, daemon/libvirtd.conf now contains an invalid host_uuid. Convert it to a valid one before the final libvirtd-running test that must terminate normally.
This commit is contained in:
parent
3db8607f34
commit
572c6cc10a
@ -83,7 +83,11 @@ if test 108 -lt `echo $SOCKPATH | wc -c`; then
|
|||||||
skip_test_ "CWD too long"
|
skip_test_ "CWD too long"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$abs_top_builddir/daemon/libvirtd --pid-file=pid-file --config=tmp.conf > log 2>&1 & pid=$!
|
# Replace the invalid host_uuid with one that is valid:
|
||||||
|
sed 's/^\(host_uuid =.*\)0"$/\11"/' tmp.conf > k; mv k tmp.conf
|
||||||
|
|
||||||
|
$abs_top_builddir/daemon/libvirtd --pid-file=pid-file --config=tmp.conf \
|
||||||
|
> log 2>&1 & pid=$!
|
||||||
sleep $sleep_secs
|
sleep $sleep_secs
|
||||||
kill $pid
|
kill $pid
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user