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>
(cherry picked from commit e5f5b1d973ed6673f07f265b89920ff511356b0c)
This commit is contained in:
Rob Bradford 2020-02-13 15:26:35 +00:00
parent 2f395e60a0
commit 27c1b40c83

View File

@ -131,12 +131,11 @@ if [ ! -d "$SHARED_DIR" ]; then
fi
VFIO_DIR="$WORKLOADS_DIR/vfio"
if [ ! -d "$VFIO_DIR" ]; then
mkdir -p $VFIO_DIR
cp $CLEAR_OS_IMAGE $VFIO_DIR
cp $FW $VFIO_DIR
cp $VMLINUX_IMAGE $VFIO_DIR
fi
rm -rf $VFIO_DIR
mkdir -p $VFIO_DIR
cp $CLEAR_OS_IMAGE $VFIO_DIR
cp $FW $VFIO_DIR
cp $VMLINUX_IMAGE $VFIO_DIR
# VFIO test network setup.
# We reserve a different IP class for it: 172.17.0.0/24.