tests: Create cloud-init image from source files in tests

In the future this will provide the basis for the ability to customise
the cloud-init file per VM.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-07-18 11:00:51 +01:00
committed by Samuel Ortiz
parent 0776d9d7ae
commit e9f01740e8
2 changed files with 44 additions and 6 deletions

View File

@@ -86,10 +86,6 @@ if [ ! -d "$SHARED_DIR" ]; then
echo "bar" > "$SHARED_DIR/file3"
fi
rm /tmp/cloudinit.img
mkdosfs -n config-2 -C /tmp/cloudinit.img 8192
mcopy -oi /tmp/cloudinit.img -s test_data/cloud-init/openstack ::
cargo build
sudo setcap cap_net_admin+ep target/debug/cloud-hypervisor