block-snapshot: set qubes.xml path for test VMs
Since it is running with totally different environment, QUBES_XML_PATH isn't passed from test runner. Apply heuristic based on VM name.
This commit is contained in:
parent
f17f80ee9d
commit
d954bb82a3
@ -251,6 +251,10 @@ case "$command" in
|
|||||||
domain=$(cat "$HOTPLUG_STORE-domain")
|
domain=$(cat "$HOTPLUG_STORE-domain")
|
||||||
if [ "$domain" ]; then
|
if [ "$domain" ]; then
|
||||||
# Dont stop on errors
|
# Dont stop on errors
|
||||||
|
if [ -r /var/lib/qubes/qubes-test.xml -a \
|
||||||
|
"${domain#test-}" != "$domain" ]; then
|
||||||
|
export QUBES_XML_PATH=/var/lib/qubes/qubes-test.xml
|
||||||
|
fi
|
||||||
/usr/bin/qvm-template-commit --offline-mode "$domain" || true
|
/usr/bin/qvm-template-commit --offline-mode "$domain" || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user