mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
tests: Always create shared VFIO directory from scratch
This ensures that any changes to the contents will not affect subsequent tests runs. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
e8e4f43d52
commit
2061f0d8b4
@ -131,12 +131,11 @@ if [ ! -d "$SHARED_DIR" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
VFIO_DIR="$WORKLOADS_DIR/vfio"
|
VFIO_DIR="$WORKLOADS_DIR/vfio"
|
||||||
if [ ! -d "$VFIO_DIR" ]; then
|
rm -rf $VFIO_DIR
|
||||||
mkdir -p $VFIO_DIR
|
mkdir -p $VFIO_DIR
|
||||||
cp $CLEAR_OS_IMAGE $VFIO_DIR
|
cp $CLEAR_OS_IMAGE $VFIO_DIR
|
||||||
cp $FW $VFIO_DIR
|
cp $FW $VFIO_DIR
|
||||||
cp $VMLINUX_IMAGE $VFIO_DIR
|
cp $VMLINUX_IMAGE $VFIO_DIR
|
||||||
fi
|
|
||||||
|
|
||||||
# VFIO test network setup.
|
# VFIO test network setup.
|
||||||
# We reserve a different IP class for it: 172.17.0.0/24.
|
# We reserve a different IP class for it: 172.17.0.0/24.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user